![]() |
A base class for uv textures. More...
Inheritance diagram for HdStUvTextureObject:Public Member Functions | |
| HgiTextureHandle const & | GetTexture () const |
| Get the handle to the actual GPU resource. More... | |
| const std::pair< HdWrap, HdWrap > & | GetWrapParameters () const |
| Opinion about wrapS and wrapT parameters from the texture file. More... | |
| HDST_API HdTextureType | GetTextureType () const overridefinal |
| Get texture type. More... | |
Public Member Functions inherited from HdStTextureObject | |
| const HdStTextureIdentifier & | GetTextureIdentifier () 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... | |
| virtual HDST_API bool | IsValid () const =0 |
| Is texture valid? Only correct after commit phase. More... | |
Protected Member Functions | |
| HdStUvTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry) | |
| void | _SetWrapParameters (const std::pair< HdWrap, HdWrap > &wrapParameters) |
| void | _SetCpuData (std::unique_ptr< HdStTextureCpuData > &&) |
| HdStTextureCpuData * | _GetCpuData () const |
| void | _CreateTexture (const HgiTextureDesc &desc) |
| void | _GenerateMipmaps () |
| void | _DestroyTexture () |
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 |
| virtual HDST_API void | _Load ()=0 |
| Load texture to CPU (thread-safe) More... | |
| virtual HDST_API void | _Commit ()=0 |
| Commit texture to GPU (not thread-safe) More... | |
| 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... | |
A base class for uv textures.
Definition at line 155 of file textureObject.h.
|
inline |
Get the handle to the actual GPU resource.
Only valid after commit phase.
Definition at line 164 of file textureObject.h.
|
finaloverridevirtual |
Get texture type.
Implements HdStTextureObject.
|
inline |
Opinion about wrapS and wrapT parameters from the texture file.
Only valid after commit phase. Can be HdWrapNoOpinion.
Definition at line 171 of file textureObject.h.