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

#include <ptexTextureObject.h>

+ Inheritance diagram for HdStPtexTextureObject:

Public Member Functions

HDST_API HdStPtexTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
HDST_API ~HdStPtexTextureObject () override
 
HgiTextureHandle GetTexelTexture () const
 
HgiTextureHandle GetLayoutTexture () const
 
HDST_API bool IsValid () const override
 
HDST_API HdTextureType GetTextureType () const override
 
- Public Member Functions inherited from HdStTextureObject
const HdStTextureIdentifierGetTextureIdentifier () 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)
 

Detailed Description

A Ptex texture.

Definition at line 59 of file ptexTextureObject.h.

Constructor & Destructor Documentation

HDST_API HdStPtexTextureObject::HdStPtexTextureObject ( const HdStTextureIdentifier textureId,
HdSt_TextureObjectRegistry textureObjectRegistry 
)
HDST_API HdStPtexTextureObject::~HdStPtexTextureObject ( )
override

Member Function Documentation

HDST_API void HdStPtexTextureObject::_Commit ( )
overrideprotectedvirtual

Commit texture to GPU (not thread-safe)

Implements HdStTextureObject.

HDST_API void HdStPtexTextureObject::_Load ( )
overrideprotectedvirtual

Load texture to CPU (thread-safe)

Implements HdStTextureObject.

HgiTextureHandle HdStPtexTextureObject::GetLayoutTexture ( ) const
inline

Get the GPU texture handle for the layout

Only valid after commit phase.

Definition at line 80 of file ptexTextureObject.h.

HgiTextureHandle HdStPtexTextureObject::GetTexelTexture ( ) const
inline

Get the GPU texture handle for the texels

Only valid after commit phase.

Definition at line 74 of file ptexTextureObject.h.

HDST_API HdTextureType HdStPtexTextureObject::GetTextureType ( ) const
overridevirtual

Get texture type

Implements HdStTextureObject.

HDST_API bool HdStPtexTextureObject::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: