NVIDIA OptiX 6.5 API nvidia_logo_transpbg.gif Up
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
optix::ContextObj Class Reference
Inheritance diagram for optix::ContextObj:
optix::ScopedObj optix::DestroyableObj optix::APIObj

Public Member Functions

void destroy ()
 
void validate ()
 
Context getContext () const
 
void compile ()
 
int getRunningState () const
 
RTcontext get ()
 
void checkError (RTresult code) const
 
std::string getErrorString (RTresult code) const
 
Acceleration createAcceleration (const std::string &builder, const std::string &ignored="")
 
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)
 
Buffer createBufferFromCallback (unsigned int type, RTbuffercallback callback, void *callbackData)
 
Buffer createBufferFromCallback (unsigned int type, RTbuffercallback callback, void *callbackData, RTformat format)
 
Buffer createBufferFromCallback (unsigned int type, RTbuffercallback callback, void *callbackData, RTformat format, RTsize width)
 
Buffer createBufferFromCallback (unsigned int type, RTbuffercallback callback, void *callbackData, RTformat format, RTsize width, RTsize height)
 
Buffer createBufferFromCallback (unsigned int type, RTbuffercallback callback, void *callbackData, RTformat format, RTsize width, RTsize height, RTsize depth)
 
TextureSampler createTextureSamplerFromGLImage (unsigned int id, RTgltarget target)
 
Buffer getBufferFromId (int buffer_id)
 
Program getProgramFromId (int program_id)
 
TextureSampler getTextureSamplerFromId (int sampler_id)
 
Geometry createGeometry ()
 
GeometryTriangles createGeometryTriangles ()
 
GeometryInstance createGeometryInstance ()
 
template<class Iterator >
GeometryInstance createGeometryInstance (Geometry geometry, Iterator matlbegin, Iterator matlend)
 
template<class Iterator >
GeometryInstance createGeometryInstance (GeometryTriangles geometrytriangles, Iterator matlbegin, Iterator matlend)
 
GeometryInstance createGeometryInstance (GeometryTriangles geometry, Material mat)
 
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 &filename, const std::string &program_name)
 
Program createProgramFromPTXFiles (const std::vector< std::string > &filenames, const std::string &program_name)
 
Program createProgramFromPTXFiles (const std::vector< const char * > &filenames, const std::string &program_name)
 
Program createProgramFromPTXString (const std::string &ptx, const std::string &program_name)
 
Program createProgramFromPTXStrings (const std::vector< std::string > &ptxStrings, const std::string &program_name)
 
Program createProgramFromPTXStrings (const std::vector< const char * > &ptxStrings, const std::string &program_name)
 
Program createProgramFromProgram (Program program_in)
 
Selector createSelector ()
 
TextureSampler createTextureSampler ()
 
PostprocessingStage createBuiltinPostProcessingStage (const std::string &builtin_name)
 
CommandList createCommandList ()
 
template<class Iterator >
void setDevices (Iterator begin, Iterator end)
 
std::vector< int > getEnabledDevices () const
 
unsigned int getEnabledDeviceCount () const
 
int getMaxTextureCount () const
 
int getCPUNumThreads () const
 
RTsize getUsedHostMemory () const
 
bool getPreferFastRecompiles () const
 
bool getForceInlineUserFunctions () const
 
int getGPUPagingActive () const
 
int getGPUPagingForcedOff () const
 
RTsize getAvailableDeviceMemory (int ordinal) const
 
void setCPUNumThreads (int cpu_num_threads)
 
void setPreferFastRecompiles (bool enabled)
 
void setForceInlineUserFunctions (bool enabled)
 
void setDiskCacheLocation (const std::string &path)
 
std::string getDiskCacheLocation ()
 
void setDiskCacheMemoryLimits (RTsize lowWaterMark, RTsize highWaterMark)
 
void getDiskCacheMemoryLimits (RTsize &lowWaterMark, RTsize &highWaterMark)
 
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 setMaxCallableProgramDepth (unsigned int max_depth)
 
unsigned int getMaxCallableProgramDepth () const
 
void setMaxTraceDepth (unsigned int max_depth)
 
unsigned int getMaxTraceDepth () const
 
void setTimeoutCallback (RTtimeoutcallback callback, double min_polling_seconds)
 
void setUsageReportCallback (RTusagereportcallback callback, int verbosity, void *cbdata)
 
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
 

Static Public Member Functions

static unsigned int getDeviceCount ()
 
static std::string getDeviceName (int ordinal)
 
static std::string getDevicePCIBusId (int ordinal)
 
static void getDeviceAttribute (int ordinal, RTdeviceattribute attrib, RTsize size, void *p)
 
static std::vector< int > getCompatibleDevices (int ordinal)
 
static Context create ()
 

Friends

class Handle< ContextObj >
 

Detailed Description

Context object wraps the OptiX C API RTcontext opaque type and its associated function set.