![]() |
A UDIM texture. More...
Public Member Functions | |
HDST_API | HdStUdimTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry) |
HgiTextureHandle const & | GetTexelTexture () const |
Get the gpu texture name for the texels. More... | |
HgiTextureHandle const & | GetLayoutTexture () const |
Get the gpu texture name for the layout. 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... | |
![]() | |
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... | |
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... | |
![]() | |
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... | |
A UDIM texture.
Definition at line 54 of file udimTextureObject.h.
|
overrideprotectedvirtual |
Commit texture to GPU (not thread-safe)
Implements HdStTextureObject.
|
overrideprotectedvirtual |
Load texture to CPU (thread-safe)
Implements HdStTextureObject.
|
inline |
Get the gpu texture name for the layout.
Only valid after commit phase.
Definition at line 75 of file udimTextureObject.h.
|
inline |
Get the gpu texture name for the texels.
Only valid after commit phase.
Definition at line 69 of file udimTextureObject.h.
|
overridevirtual |
Get texture type.
Implements HdStTextureObject.
|
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.