Context object wraps the OptiX C API RTcontext opaque type and its associated function set.
|
void | destroy () |
|
void | validate () |
|
Context | getContext () const |
|
void | compile () |
|
void | setRemoteDevice (RemoteDevice remote_device) |
|
int | getRunningState () const |
|
RTcontext | get () |
|
|
void | checkError (RTresult code) const |
|
std::string | getErrorString (RTresult code) const |
|
|
Acceleration | createAcceleration (const char *builder, const char *traverser) |
|
Buffer | createBuffer (unsigned int type) |
|
Buffer | createBuffer (unsigned int type, RTformat format) |
|
Buffer | createBuffer (unsigned int type, RTformat format, RTsize width) |
|
Buffer | createMipmappedBuffer (unsigned int type, RTformat format, RTsize width, unsigned int levels) |
|
Buffer | createBuffer (unsigned int type, RTformat format, RTsize width, RTsize height) |
|
Buffer | createMipmappedBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, unsigned int levels) |
|
Buffer | createBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, RTsize depth) |
|
Buffer | createMipmappedBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, RTsize depth, unsigned int levels) |
|
Buffer | create1DLayeredBuffer (unsigned int type, RTformat format, RTsize width, RTsize layers, unsigned int levels) |
|
Buffer | create2DLayeredBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, RTsize layers, unsigned int levels) |
|
Buffer | createCubeBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, unsigned int levels) |
|
Buffer | createCubeLayeredBuffer (unsigned int type, RTformat format, RTsize width, RTsize height, RTsize faces, unsigned int levels) |
|
Buffer | createBufferForCUDA (unsigned int type) |
|
Buffer | createBufferForCUDA (unsigned int type, RTformat format) |
|
Buffer | createBufferForCUDA (unsigned int type, RTformat format, RTsize width) |
|
Buffer | createBufferForCUDA (unsigned int type, RTformat format, RTsize width, RTsize height) |
|
Buffer | createBufferForCUDA (unsigned int type, RTformat format, RTsize width, RTsize height, RTsize depth) |
|
Buffer | createBufferFromGLBO (unsigned int type, unsigned int vbo) |
|
TextureSampler | createTextureSamplerFromGLImage (unsigned int id, RTgltarget target) |
|
Buffer | createBufferFromD3D9Resource (unsigned int type, IDirect3DResource9 *pResource) |
|
Buffer | createBufferFromD3D10Resource (unsigned int type, ID3D10Resource *pResource) |
|
Buffer | createBufferFromD3D11Resource (unsigned int type, ID3D11Resource *pResource) |
|
TextureSampler | createTextureSamplerFromD3D9Resource (IDirect3DResource9 *pResource) |
|
TextureSampler | createTextureSamplerFromD3D10Resource (ID3D10Resource *pResource) |
|
TextureSampler | createTextureSamplerFromD3D11Resource (ID3D11Resource *pResource) |
|
Buffer | getBufferFromId (int buffer_id) |
|
Program | getProgramFromId (int program_id) |
|
TextureSampler | getTextureSamplerFromId (int sampler_id) |
|
Geometry | createGeometry () |
|
GeometryInstance | createGeometryInstance () |
|
template<class Iterator > |
GeometryInstance | createGeometryInstance (Geometry geometry, Iterator matlbegin, Iterator matlend) |
|
Group | createGroup () |
|
template<class Iterator > |
Group | createGroup (Iterator childbegin, Iterator childend) |
|
GeometryGroup | createGeometryGroup () |
|
template<class Iterator > |
GeometryGroup | createGeometryGroup (Iterator childbegin, Iterator childend) |
|
Transform | createTransform () |
|
Material | createMaterial () |
|
Program | createProgramFromPTXFile (const std::string &ptx, const std::string &program_name) |
|
Program | createProgramFromPTXString (const std::string &ptx, const std::string &program_name) |
|
Selector | createSelector () |
|
TextureSampler | createTextureSampler () |
|
|
template<class Iterator > |
void | setDevices (Iterator begin, Iterator end) |
|
void | setD3D9Device (IDirect3DDevice9 *device) |
|
void | setD3D10Device (ID3D10Device *device) |
|
void | setD3D11Device (ID3D11Device *device) |
|
std::vector< int > | getEnabledDevices () const |
|
unsigned int | getEnabledDeviceCount () const |
|
|
int | getMaxTextureCount () const |
|
int | getCPUNumThreads () const |
|
RTsize | getUsedHostMemory () const |
|
int | getGPUPagingActive () const |
|
int | getGPUPagingForcedOff () const |
|
RTsize | getAvailableDeviceMemory (int ordinal) const |
|
|
void | setCPUNumThreads (int cpu_num_threads) |
|
void | setGPUPagingForcedOff (int gpu_paging_forced_off) |
|
template<class T > |
void | setAttribute (RTcontextattribute attribute, const T &val) |
|
|
void | setStackSize (RTsize stack_size_bytes) |
|
RTsize | getStackSize () const |
|
void | setTimeoutCallback (RTtimeoutcallback callback, double min_polling_seconds) |
|
void | setEntryPointCount (unsigned int num_entry_points) |
|
unsigned int | getEntryPointCount () const |
|
void | setRayTypeCount (unsigned int num_ray_types) |
|
unsigned int | getRayTypeCount () const |
|
|
void | setRayGenerationProgram (unsigned int entry_point_index, Program program) |
|
Program | getRayGenerationProgram (unsigned int entry_point_index) const |
|
void | setExceptionProgram (unsigned int entry_point_index, Program program) |
|
Program | getExceptionProgram (unsigned int entry_point_index) const |
|
void | setExceptionEnabled (RTexception exception, bool enabled) |
|
bool | getExceptionEnabled (RTexception exception) const |
|
void | setMissProgram (unsigned int ray_type_index, Program program) |
|
Program | getMissProgram (unsigned int ray_type_index) const |
|
|
void | launch (unsigned int entry_point_index, RTsize image_width) |
|
void | launch (unsigned int entry_point_index, RTsize image_width, RTsize image_height) |
|
void | launch (unsigned int entry_point_index, RTsize image_width, RTsize image_height, RTsize image_depth) |
|
|
void | launchProgressive (unsigned int entry_point_index, RTsize image_width, RTsize image_height, unsigned int max_subframes) |
|
void | stopProgressive () |
|
|
void | setPrintEnabled (bool enabled) |
|
bool | getPrintEnabled () const |
|
void | setPrintBufferSize (RTsize buffer_size_bytes) |
|
RTsize | getPrintBufferSize () const |
|
void | setPrintLaunchIndex (int x, int y=-1, int z=-1) |
|
optix::int3 | getPrintLaunchIndex () const |
|
|
Variable | declareVariable (const std::string &name) |
|
Variable | queryVariable (const std::string &name) const |
|
void | removeVariable (Variable v) |
|
unsigned int | getVariableCount () const |
|
Variable | getVariable (unsigned int index) const |
|
void | addReference () |
|
int | removeReference () |
|
virtual void | checkError (RTresult code, Context context) const |
|
void | checkErrorNoGetContext (RTresult code) const |
|