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

#include <textureObject.h>

+ Inheritance diagram for HdStAssetUvTextureObject:

Public Member Functions

HDST_API HdStAssetUvTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
HDST_API ~HdStAssetUvTextureObject () override
 
HDST_API HgiTextureHandle constGetTexture () const override
 
HDST_API const std::pair
< HdWrap, HdWrap > & 
GetWrapParameters () const override
 
HDST_API bool IsValid () const override
 
- Public Member Functions inherited from HdStUvTextureObject
HDST_API HdTextureType GetTextureType () const overridefinal
 
- Public Member Functions inherited from HdStTextureObject
HDST_API const
HdStTextureIdentifier
GetTextureIdentifier () const
 
HDST_API 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 HdStUvTextureObject
 HdStUvTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
- Protected Member Functions inherited from HdStTextureObject
 HdStTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
 
Hgi_GetHgi () const
 

Detailed Description

Definition at line 155 of file textureObject.h.

Constructor & Destructor Documentation

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

Member Function Documentation

HDST_API void HdStAssetUvTextureObject::_Commit ( )
overrideprotectedvirtual

Commit texture to GPU (not thread-safe)

Implements HdStTextureObject.

HDST_API void HdStAssetUvTextureObject::_Load ( )
overrideprotectedvirtual

Load texture to CPU (thread-safe)

Implements HdStTextureObject.

HDST_API HgiTextureHandle const& HdStAssetUvTextureObject::GetTexture ( ) const
inlineoverridevirtual

Get the handle to the actual GPU resource.

Only valid after commit phase.

Implements HdStUvTextureObject.

Definition at line 171 of file textureObject.h.

HDST_API const std::pair<HdWrap, HdWrap>& HdStAssetUvTextureObject::GetWrapParameters ( ) const
inlineoverridevirtual

Opinion about wrapS and wrapT parameters from the texture file.

Only valid after commit phase. Can be HdWrapNoOpinion.

Implements HdStUvTextureObject.

Definition at line 179 of file textureObject.h.

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