34 #include <internal/optix_declarations.h> 46 TMIN_INTERSECTION_RAY_GEN = 1,
47 MASKED_INTERSECTION_RAY_GEN = 2
61 const uint32 triCount,
63 const uint32 vertex_count,
64 const float* vertex_ptr,
65 const int* normal_index_ptr,
66 const float* normal_vertex_ptr,
67 const int* tex_index_ptr,
68 const float* tex_vertex_ptr,
69 const int* material_index_ptr);
74 const uint32 element_size,
76 const RTformat format);
84 void bind_var(
const char* name,
const T value) { bind_var(name,
sizeof(T), (
void*)&value); }
86 void bind_var(
const char* name,
const int32 value);
87 void bind_var(
const char* name,
const uint32 value);
88 void bind_var(
const char* name,
const float value);
90 uint32 create_program(
92 const char* program_name);
94 uint32 add_ray_generation_program(
const uint32 program);
96 void launch(
const uint32 index,
const uint32 width);
97 void launch(
const uint32 index,
const uint32 width,
const uint32 height);
99 void trace(
const uint32 count,
const Ray* rays,
Hit* hits);
100 void trace(
const uint32 count,
const MaskedRay* rays,
Hit* hits);
101 void trace_shadow(
const uint32 count,
const MaskedRay* rays,
Hit* hits);
102 void trace_shadow(
const uint32 count,
const MaskedRay* rays, uint32* binary_hits);