OptiX
3.9
NVIDIA OptiX Acceleration Engine
|
Material wraps the OptiX C API RTmaterial opaque type and its associated function set.
Public Member Functions | |
void | destroy () |
void | validate () |
Context | getContext () const |
RTmaterial | get () |
void | setClosestHitProgram (unsigned int ray_type_index, Program program) |
Program | getClosestHitProgram (unsigned int ray_type_index) const |
void | setAnyHitProgram (unsigned int ray_type_index, Program program) |
Program | getAnyHitProgram (unsigned int ray_type_index) 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 |
Public Member Functions inherited from optix::APIObj | |
void | addReference () |
int | removeReference () |
virtual void | checkError (RTresult code) const |
virtual void | checkError (RTresult code, Context context) const |
void | checkErrorNoGetContext (RTresult code) const |
Friends | |
class | Handle< MaterialObj > |
Additional Inherited Members | |
Static Public Member Functions inherited from optix::APIObj | |
static Exception | makeException (RTresult code, RTcontext context) |
|
inlinevirtual |
Declare a variable associated with this object. See rt[ObjectType]DeclareVariable. Note that this function is wrapped by the convenience function Handle::operator[].
Implements optix::ScopedObj.
|
inlinevirtual |
Query the number of variables associated with this object. Used along with ScopedObj::getVariable to iterate over variables in an object. See rt[ObjectType]GetVariableCount
Implements optix::ScopedObj.
|
inlinevirtual |
Query a variable associated with this object by name. See rt[ObjectType]QueryVariable. Note that this function is wrapped by the convenience function Handle::operator[].
Implements optix::ScopedObj.
|
inline |
Set closest hit program for this material at the given ray_type index. See rtMaterialSetClosestHitProgram.