HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStUvTextureObject Class Reference

#include <textureObject.h>

+ Inheritance diagram for HdStUvTextureObject:

Public Member Functions

 ~HdStUvTextureObject () override
 
HgiTextureHandle const & GetTexture () const
 
const std::pair< HdWrap, HdWrap > & GetWrapParameters () const
 
HDST_API HdTextureType GetTextureType () const overridefinal
 
- Public Member Functions inherited from HdStTextureObject
const HdStTextureIdentifierGetTextureIdentifier () const
 
size_t GetTargetMemory () const
 
HDST_API void SetTargetMemory (size_t)
 
virtual HDST_API bool IsValid () const =0
 
virtual HDST_API ~HdStTextureObject ()
 

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
 
virtual HDST_API void _Commit ()=0
 
HDST_API void _AdjustTotalTextureMemory (int64_t memDiff)
 
HDST_API void _AddToTotalTextureMemory (const HgiTextureHandle &texture)
 
HDST_API void _SubtractFromTotalTextureMemory (const HgiTextureHandle &texture)
 

Detailed Description

A base class for uv textures.

Definition at line 155 of file textureObject.h.

Constructor & Destructor Documentation

HdStUvTextureObject::~HdStUvTextureObject ( )
override
HdStUvTextureObject::HdStUvTextureObject ( const HdStTextureIdentifier textureId,
HdSt_TextureObjectRegistry textureObjectRegistry 
)
protected

Member Function Documentation

void HdStUvTextureObject::_CreateTexture ( const HgiTextureDesc desc)
protected
void HdStUvTextureObject::_DestroyTexture ( )
protected
void HdStUvTextureObject::_GenerateMipmaps ( )
protected
HdStTextureCpuData* HdStUvTextureObject::_GetCpuData ( ) const
protected
void HdStUvTextureObject::_SetCpuData ( std::unique_ptr< HdStTextureCpuData > &&  )
protected
void HdStUvTextureObject::_SetWrapParameters ( const std::pair< HdWrap, HdWrap > &  wrapParameters)
protected
HgiTextureHandle const& HdStUvTextureObject::GetTexture ( ) const
inline

Get the handle to the actual GPU resource.

Only valid after commit phase.

Definition at line 164 of file textureObject.h.

HDST_API HdTextureType HdStUvTextureObject::GetTextureType ( ) const
finaloverridevirtual

Get texture type

Implements HdStTextureObject.

const std::pair<HdWrap, HdWrap>& HdStUvTextureObject::GetWrapParameters ( ) const
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.


The documentation for this class was generated from the following file: