All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStFieldTextureObject Class Referencefinal

A uvw texture with a bounding box describing how to transform it. More...

+ Inheritance diagram for HdStFieldTextureObject:

Public Member Functions

HDST_API HdStFieldTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
HgiTextureHandle const & GetTexture () const
 Get the handle to the actual GPU resource. More...
 
const GfBBox3dGetBoundingBox () const
 The box the texture fills out. More...
 
const GfMatrix4dGetSamplingTransform () const
 The sampling transform. More...
 
HDST_API bool IsValid () const override
 Is texture valid? Only correct after commit phase. More...
 
HDST_API HdTextureType GetTextureType () const override
 Get texture type. More...
 
- Public Member Functions inherited from HdStTextureObject
const HdStTextureIdentifierGetTextureIdentifier () const
 Get texture identifier. More...
 
size_t GetTargetMemory () const
 Get the target memory for the texture. More...
 
HDST_API void SetTargetMemory (size_t)
 Set the target memory (in bytes). More...
 

Protected Member Functions

HDST_API void _Load () override
 Load texture to CPU (thread-safe) More...
 
HDST_API void _Commit () override
 Commit texture to GPU (not thread-safe) More...
 
- Protected Member Functions inherited from HdStTextureObject
 HdStTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
HDST_API HdStResourceRegistry_GetResourceRegistry () const
 
HDST_API Hgi_GetHgi () const
 
HDST_API std::string _GetDebugName (const HdStTextureIdentifier &textureId) const
 
HDST_API bool _GetPremultiplyAlpha (const HdStSubtextureIdentifier *const subId) const
 
HDST_API HioImage::SourceColorSpace _GetSourceColorSpace (const HdStSubtextureIdentifier *const subId) const
 
HDST_API void _AdjustTotalTextureMemory (int64_t memDiff)
 Add signed number to total texture memory amount maintained by registry. More...
 
HDST_API void _AddToTotalTextureMemory (const HgiTextureHandle &texture)
 Compute memory of texture and add to total texture memory amount maintained by registry. More...
 
HDST_API void _SubtractFromTotalTextureMemory (const HgiTextureHandle &texture)
 Compute memory of texture and subtract to total texture memory amount maintained by registry. More...
 

Detailed Description

A uvw texture with a bounding box describing how to transform it.

Definition at line 229 of file textureObject.h.

Member Function Documentation

HDST_API void _Commit ( )
overrideprotectedvirtual

Commit texture to GPU (not thread-safe)

Implements HdStTextureObject.

HDST_API void _Load ( )
overrideprotectedvirtual

Load texture to CPU (thread-safe)

Implements HdStTextureObject.

const GfBBox3d& GetBoundingBox ( ) const
inline

The box the texture fills out.

Only valid after the commit phase.

Definition at line 252 of file textureObject.h.

const GfMatrix4d& GetSamplingTransform ( ) const
inline

The sampling transform.

Only valid after the commit phase.

Definition at line 258 of file textureObject.h.

HgiTextureHandle const& GetTexture ( ) const
inline

Get the handle to the actual GPU resource.

Only valid after commit phase.

Definition at line 244 of file textureObject.h.

HDST_API HdTextureType GetTextureType ( ) const
overridevirtual

Get texture type.

Implements HdStTextureObject.

HDST_API bool IsValid ( ) const
overridevirtual

Is texture valid? Only correct after commit phase.

E.g., no file at given file path. Consulted by clients to determine whether to use the fallback value.

Implements HdStTextureObject.


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