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

#include <textureObject.h>

+ Inheritance diagram for HdStUdimTextureObject:

Public Member Functions

HDST_API HdStUdimTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
HDST_API ~HdStUdimTextureObject () override
HDST_API uint32_t GetTexelGLTextureName () const
HDST_API uint32_t GetLayoutGLTextureName () const
HDST_API bool IsValid () const override
HDST_API HdTextureType GetTextureType () const override
- Public Member Functions inherited from HdStTextureObject
HDST_API const
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 HdStTextureObject
 HdStTextureObject (const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
Hgi_GetHgi () const

Detailed Description

A udim texture - it is using Glf to both load the texture and allocate the GPU resources (unlike the other texture types).

Definition at line 318 of file textureObject.h.

Constructor & Destructor Documentation

HDST_API HdStUdimTextureObject::HdStUdimTextureObject ( const HdStTextureIdentifier textureId,
HdSt_TextureObjectRegistry textureObjectRegistry 
HDST_API HdStUdimTextureObject::~HdStUdimTextureObject ( )

Member Function Documentation

HDST_API void HdStUdimTextureObject::_Commit ( )

Commit texture to GPU (not thread-safe)

Implements HdStTextureObject.

HDST_API void HdStUdimTextureObject::_Load ( )

Load texture to CPU (thread-safe)

Implements HdStTextureObject.

HDST_API uint32_t HdStUdimTextureObject::GetLayoutGLTextureName ( ) const

Get the GL texture name for the layout

Only valid after commit phase.

Definition at line 341 of file textureObject.h.

HDST_API uint32_t HdStUdimTextureObject::GetTexelGLTextureName ( ) const

Get the GL texture name for the texels

Only valid after commit phase.

Definition at line 334 of file textureObject.h.

HDST_API HdTextureType HdStUdimTextureObject::GetTextureType ( ) const

Get texture type

Implements HdStTextureObject.

HDST_API bool HdStUdimTextureObject::IsValid ( ) const

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: