HDK
|
#include <textureObject.h>
Public Member Functions | |
HDST_API | HdStFieldTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry) |
HDST_API | ~HdStFieldTextureObject () override |
HgiTextureHandle const & | GetTexture () const |
const GfBBox3d & | GetBoundingBox () const |
const GfMatrix4d & | GetSamplingTransform () const |
HDST_API bool | IsValid () const override |
HDST_API HdTextureType | GetTextureType () const override |
Public Member Functions inherited from HdStTextureObject | |
const HdStTextureIdentifier & | GetTextureIdentifier () const |
size_t | GetTargetMemory () const |
HDST_API void | SetTargetMemory (size_t) |
virtual HDST_API | ~HdStTextureObject () |
Protected Member Functions | |
HDST_API void | _Load () override |
HDST_API void | _Commit () override |
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) |
HDST_API void | _AddToTotalTextureMemory (const HgiTextureHandle &texture) |
HDST_API void | _SubtractFromTotalTextureMemory (const HgiTextureHandle &texture) |
A uvw texture with a bounding box describing how to transform it.
Definition at line 232 of file textureObject.h.
HDST_API HdStFieldTextureObject::HdStFieldTextureObject | ( | const HdStTextureIdentifier & | textureId, |
HdSt_TextureObjectRegistry * | textureObjectRegistry | ||
) |
|
override |
Commit texture to GPU (not thread-safe)
Implements HdStTextureObject.
Load texture to CPU (thread-safe)
Implements HdStTextureObject.
|
inline |
The box the texture fills out.
Only valid after the commit phase.
Definition at line 255 of file textureObject.h.
|
inline |
The sampling transform.
Only valid after the commit phase.
Definition at line 261 of file textureObject.h.
|
inline |
Get the handle to the actual GPU resource.
Only valid after commit phase.
Definition at line 247 of file textureObject.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.