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

Detailed description

Class defining core ray tracing functionality, ranging from geometry setup to performing actual ray tracing queries.

#include <rt.h>

Public Methods

void create_geometry (const uint32 triCount, const int *index_ptr, const uint32 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)
 
void bind_buffer (const char *name, const uint32 size, const uint32 element_size, void *ptr, const RTformat format)
 
void bind_var (const char *name, const uint32 size, void *ptr)
 
template<typename T >
void bind_var (const char *name, const T value)
 
void bind_var (const char *name, const int32 value)
 
void bind_var (const char *name, const uint32 value)
 
void bind_var (const char *name, const float value)
 
uint32 create_program (const char *filename, const char *program_name)
 
uint32 add_ray_generation_program (const uint32 program)
 
void launch (const uint32 index, const uint32 width)
 
void launch (const uint32 index, const uint32 width, const uint32 height)
 
void trace (const uint32 count, const Ray *rays, Hit *hits)
 
void trace (const uint32 count, const MaskedRay *rays, Hit *hits)
 
void trace_shadow (const uint32 count, const MaskedRay *rays, Hit *hits)
 
void trace_shadow (const uint32 count, const MaskedRay *rays, uint32 *binary_hits)
 

Public Members

RTContextImplimpl
 

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