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

#include <textureObjectRegistry.h>

Public Member Functions

 HdSt_TextureObjectRegistry (Hgi *hgi)
 ~HdSt_TextureObjectRegistry ()
HDST_API HdStTextureObjectSharedPtr AllocateTextureObject (const HdStTextureIdentifier &textureId, HdTextureType textureType)
HDST_API std::set
< HdStTextureObjectSharedPtr
Commit ()
HDST_API void GarbageCollect ()
HDST_API void MarkTextureObjectDirty (HdStTextureObjectPtr const &textureObject)
HgiGetHgi () const

Detailed Description

A central registry for texture GPU resources.

Definition at line 47 of file textureObjectRegistry.h.

Constructor & Destructor Documentation

HdSt_TextureObjectRegistry::HdSt_TextureObjectRegistry ( Hgi hgi)
HdSt_TextureObjectRegistry::~HdSt_TextureObjectRegistry ( )

Member Function Documentation

HDST_API HdStTextureObjectSharedPtr HdSt_TextureObjectRegistry::AllocateTextureObject ( const HdStTextureIdentifier textureId,
HdTextureType  textureType 

Allocate texture.

This just creates the HdStTextureObject, the actual GPU resources won't be allocated until the Commit phase.

HDST_API std::set<HdStTextureObjectSharedPtr> HdSt_TextureObjectRegistry::Commit ( )

Create GPU texture objects, load textures from files and upload to GPU.

HDST_API void HdSt_TextureObjectRegistry::GarbageCollect ( )

Free GPU resources of textures not used by any client.

Hgi* HdSt_TextureObjectRegistry::GetHgi ( ) const

Get Hgi instance

Definition at line 83 of file textureObjectRegistry.h.

HDST_API void HdSt_TextureObjectRegistry::MarkTextureObjectDirty ( HdStTextureObjectPtr const textureObject)

Mark that the GPU resource for a texture needs to be (re-)loaded, e.g., because the memory request changed.

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