Loading...
Searching...
No Matches
HdStDynamicUvSubtextureIdentifier Class Reference

Used as a tag that the Storm texture system returns a HdStDynamicUvTextureObject that is populated by a client rather than by the Storm texture system. More...

#include <subtextureIdentifier.h>

+ Inheritance diagram for HdStDynamicUvSubtextureIdentifier:

Public Member Functions

HDST_API std::unique_ptr< HdStSubtextureIdentifierClone () const override
 
virtual HDST_API HdStDynamicUvTextureImplementationGetTextureImplementation () const
 Textures can return their own HdStDynamicUvTextureImplementation to customize the load and commit behavior.
 
virtual HDST_API std::unique_ptr< HdStSubtextureIdentifierClone () const =0
 

Protected Member Functions

HDST_API ID _Hash () const override
 
virtual ID _Hash () const =0
 

Additional Inherited Members

- Public Types inherited from HdStSubtextureIdentifier
using ID = size_t
 

Detailed Description

Used as a tag that the Storm texture system returns a HdStDynamicUvTextureObject that is populated by a client rather than by the Storm texture system.

Clients can subclass this class and provide their own HdStDynamicUvTextureImplementation to create UV texture with custom load and commit behavior.

testHdStDynamicUvTexture.cpp is an example of how custom load and commit behavior can be implemented.

AOV's are another example. In presto, these are baked by HdStDynamicUvTextureObject's. In this case, the HdStDynamicUvTextureObject's do not provide custom load or commit behavior (null-ptr returned by GetTextureImplementation). Instead, GPU memory is allocated by explicitly calling HdStDynamicUvTextureObject::CreateTexture in HdStRenderBuffer::Sync/Allocate and the texture is filled by using it as render target in various render passes.

Definition at line 171 of file subtextureIdentifier.h.

Member Function Documentation

◆ _Hash()

HDST_API ID _Hash ( ) const
overrideprotectedvirtual

◆ Clone()

HDST_API std::unique_ptr< HdStSubtextureIdentifier > Clone ( ) const
overridevirtual

◆ GetTextureImplementation()

virtual HDST_API HdStDynamicUvTextureImplementation * GetTextureImplementation ( ) const
virtual

Textures can return their own HdStDynamicUvTextureImplementation to customize the load and commit behavior.


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