CUDA 13.4 samples update - v13.4-public

Release 13.4 of the CUDA Samples supported by CUDA Toolkit 13.4.
See Changelog for more information.
This commit is contained in:
Dheemanth
2026-09-09 15:07:08 -07:00
committed by GitHub
parent b7c5481c55
commit 5443602d89
871 changed files with 6843 additions and 321849 deletions

View File

@@ -91,7 +91,11 @@ uint ParticleSystem::createVBO(uint size)
return vbo;
}
// std::lerp (C++20) is pulled into the global namespace by GCC's <cmath>;
// only define our own lerp when std::lerp is unavailable to avoid a clash.
#if !defined(__cplusplus) || (__cplusplus < 202002L)
inline float lerp(float a, float b, float t) { return a + t * (b - a); }
#endif
// create a color ramp
void colorRamp(float t, float *r)