Fixed the newly defined math function to actually work with cuda

This commit is contained in:
Martin committed 2025-01-09 12:16:18 +01:00
1 parent ec31f3f897
commit 52a47ed302
2 files changed
+6 -8

No files matched your search

+5 -1
View File
@@ -10,8 +10,12 @@ __device__ unsigned int packUnorm4x8(float r, float g, float b, float a);
__device__ float clamp(float value, float min, float max);
__device__ float normalize(float value, float min, float max);
// Interpolate between two values
template <typename T>
__device__ float interpolate(T start, T end, float t);
__device__ T interpolate(T start, T end, float t) {
return start + t * (end - start);
}
#endif // MAT_H
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.