OWL
OptiX7 Wrapper Library
owl::TextureVariable Struct Reference
Inheritance diagram for owl::TextureVariable:
owl::Variable owl::Object

Public Types

typedef std::shared_ptr< TextureVariableSP
 
- Public Types inherited from owl::Variable
typedef std::shared_ptr< VariableSP
 
- Public Types inherited from owl::Object
typedef std::shared_ptr< ObjectSP
 

Public Member Functions

 TextureVariable (const OWLVarDecl *const varDecl)
 
void set (const Texture::SP &value) override
 
void writeToSBT (uint8_t *sbtEntry, const DeviceContext::SP &device) const override
 
- Public Member Functions inherited from owl::Variable
 Variable (const OWLVarDecl *const varDecl)
 
virtual void set (const std::shared_ptr< Buffer > &value)
 
virtual void set (const std::shared_ptr< Group > &value)
 
virtual void set (const std::shared_ptr< Texture > &value)
 
virtual void setRaw (const void *ptr)
 
virtual void set (const int32_t &value)
 
virtual void set (const vec2i &value)
 
virtual void set (const vec3i &value)
 
virtual void set (const vec4i &value)
 
virtual void set (const uint32_t &value)
 
virtual void set (const vec2ui &value)
 
virtual void set (const vec3ui &value)
 
virtual void set (const vec4ui &value)
 
virtual void set (const int64_t &value)
 
virtual void set (const vec2l &value)
 
virtual void set (const vec3l &value)
 
virtual void set (const vec4l &value)
 
virtual void set (const uint64_t &value)
 
virtual void set (const vec2ul &value)
 
virtual void set (const vec3ul &value)
 
virtual void set (const vec4ul &value)
 
virtual void set (const float &value)
 
virtual void set (const vec2f &value)
 
virtual void set (const vec3f &value)
 
virtual void set (const vec4f &value)
 
virtual void set (const double &value)
 
virtual void set (const vec2d &value)
 
virtual void set (const vec3d &value)
 
virtual void set (const vec4d &value)
 
virtual std::string toString () const
 
void mismatchingType ()
 
- Public Member Functions inherited from owl::Object
 Object ()
 
virtual DeviceData::SP createOn (const std::shared_ptr< DeviceContext > &device)
 
void createDeviceData (const std::vector< std::shared_ptr< DeviceContext >> &devices)
 
template<typename T >
std::shared_ptr< T > as ()
 

Public Attributes

Texture::SP texture
 
- Public Attributes inherited from owl::Variable
const OWLVarDecl *const varDecl
 
- Public Attributes inherited from owl::Object
const size_t uniqueID
 
std::vector< DeviceData::SPdeviceData
 

Additional Inherited Members

- Static Public Member Functions inherited from owl::Variable
static Variable::SP createInstanceOf (const OWLVarDecl *decl)
 
- Static Public Attributes inherited from owl::Object
static std::atomic< uint64_t > nextAvailableID
 

Detailed Description

Variable type that manages textures; accepting owl::Texture objects on the host, and writing their corresponding cuda texture obejct handles into the SBT

Member Typedef Documentation

◆ SP

typedef std::shared_ptr<TextureVariable> owl::TextureVariable::SP

Constructor & Destructor Documentation

◆ TextureVariable()

owl::TextureVariable::TextureVariable ( const OWLVarDecl *const  varDecl)
inline

Member Function Documentation

◆ set()

void owl::TextureVariable::set ( const Texture::SP value)
inlineoverride

◆ writeToSBT()

void owl::TextureVariable::writeToSBT ( uint8_t *  sbtEntry,
const DeviceContext::SP device 
) const
inlineoverridevirtual

writes the device specific representation of the given type

Implements owl::Variable.

Member Data Documentation

◆ texture

Texture::SP owl::TextureVariable::texture

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