Fermat
Public Methods | Public Members | List of all members
RTContextImpl Struct Reference

Public Methods

void create_context ()
 
void create_geometry (unsigned int tri_count, const int *index_ptr, unsigned int vertex_count, const float *vertex_ptr, const int *normal_index_ptr, const float *normal_vertex_ptr, const int *tex_index_ptr, const float *tex_vertex_ptr, const int *material_index_ptr)
 
optix::Program create_optix_program (const char *filename, const std::string &program_name)
 
uint32 create_program (const char *filename, const char *program_name)
 
uint32 add_ray_generation_program (const uint32 program)
 
void update ()
 

Public Members

optix::Context context
 
optix::GeometryTriangles geometry_triangles
 
optix::GeometryInstance geometry_instance
 
optix::Material material
 
optix::Program programs [EProgram::PROGRAM_MAX_COUNT]
 
std::map< uint32, optix::Program > user_programs
 
uint32 user_programs_count
 
std::vector< uint32 > ray_gen_programs
 
bool ray_gen_programs_dirty
 
uint32 null_ray_gen_idx
 
uint32 tmin_intersection_ray_gen_idx
 
uint32 masked_intersection_ray_gen_idx
 
uint32 masked_shadow_intersection_ray_gen_idx
 
uint32 masked_shadow_binary_intersection_ray_gen_idx
 
std::vector< optix::Buffer > user_buffers
 
optix::Buffer ray_buffer
 
optix::Buffer hit_buffer
 
RTMesh mesh
 

The documentation for this struct was generated from the following file: