OWL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
owl::Texture Struct Reference
Inheritance diagram for owl::Texture:
owl::RegisteredObject owl::ContextObject owl::Object

Public Types

typedef std::shared_ptr< TextureSP
 
- Public Types inherited from owl::ContextObject
typedef std::shared_ptr< ContextObjectSP
 
- Public Types inherited from owl::Object
typedef std::shared_ptr< ObjectSP
 

Public Member Functions

 Texture (Context *const context, vec2i size, uint32_t linePitchInBytes, OWLTexelFormat texelFormat, OWLTextureFilterMode filterMode, OWLTextureAddressMode addressMode, OWLTextureColorSpace colorSpace, const void *texels)
 
virtual ~Texture ()
 
std::string toString () const override
 
cudaTextureObject_t getObject (int deviceID)
 
void destroy ()
 
- Public Member Functions inherited from owl::RegisteredObject
 RegisteredObject (Context *const context, ObjectRegistry &registry)
 
- Public Member Functions inherited from owl::ContextObject
 ContextObject (Context *const context)
 
std::string toString () const override
 
- Public Member Functions inherited from owl::Object
 Object ()
 
virtual std::string toString () const
 
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

std::vector< cudaTextureObject_t > textureObjects
 
std::vector< cudaArray_t > textureArrays
 
vec2i size
 
uint32_t linePitchInBytes
 
OWLTexelFormat texelFormat
 
OWLTextureFilterMode filterMode
 
- Public Attributes inherited from owl::RegisteredObject
int ID
 
ObjectRegistryregistry
 
- Public Attributes inherited from owl::ContextObject
Context *const context
 
- Public Attributes inherited from owl::Object
const size_t uniqueID
 
std::vector< DeviceData::SP > deviceData
 

Additional Inherited Members

- Static Public Attributes inherited from owl::Object
static std::atomic< uint64_t > nextAvailableID
 

Constructor & Destructor Documentation

◆ ~Texture()

owl::Texture::~Texture ( )
virtual

destructor - free device data, de-regsiter, and destruct

Member Function Documentation

◆ destroy()

void owl::Texture::destroy ( )

destroy whatever resources this texture's ll-layer handle this may refer to; this will not destruct the current object itself, but should already release all its references

destroy whatever resources this buffer's ll-layer handle this may refer to; this will not destruct the current object itself, but should already release all its references

◆ toString()

std::string owl::Texture::toString ( ) const
inlineoverridevirtual

pretty-printer, for printf-debugging

Reimplemented from owl::ContextObject.

Member Data Documentation

◆ textureObjects

std::vector<cudaTextureObject_t> owl::Texture::textureObjects

one entry per device


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