diff options
Diffstat (limited to 'zluda_rt/src/tests/buffer_id.cu')
-rw-r--r-- | zluda_rt/src/tests/buffer_id.cu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zluda_rt/src/tests/buffer_id.cu b/zluda_rt/src/tests/buffer_id.cu new file mode 100644 index 0000000..968bc85 --- /dev/null +++ b/zluda_rt/src/tests/buffer_id.cu @@ -0,0 +1,13 @@ +// nvcc buffer_id.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<rtBufferId<unsigned int> > buffers; + +RT_PROGRAM void start() { + buffers[0][2] = 0x0118378c; + buffers[0][1] = buffers[0].size(); +} |