diff options
Diffstat (limited to 'zluda_rt/src/tests/default_variable.cu')
-rw-r--r-- | zluda_rt/src/tests/default_variable.cu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zluda_rt/src/tests/default_variable.cu b/zluda_rt/src/tests/default_variable.cu new file mode 100644 index 0000000..13e7a99 --- /dev/null +++ b/zluda_rt/src/tests/default_variable.cu @@ -0,0 +1,13 @@ +// nvcc default_variable.cu -I"C:\dev\OptiX SDK 6.5.0\include" -ptx -x cu -dc +#include <optix.h> +#include <optixu/optixu_math_namespace.h> +#include <optix_world.h> + +using namespace optix; + +rtBuffer<unsigned int, 1> var_buffer; +rtDeclareVariable(unsigned int, x, , ) = 55; + +RT_PROGRAM void start() { + var_buffer[0] = x; +} |