HDK
|
#include <textureHandle.h>
Public Member Functions | |
HDST_API | HdStTextureHandle (HdStTextureObjectSharedPtr const &textureObject, const HdSamplerParameters &samplerParams, size_t memoryRequest, HdStShaderCodePtr const &shaderCode, HdSt_TextureHandleRegistry *textureHandleRegistry) |
See HdStResourceRegistry::AllocateTextureHandle for details. More... | |
HDST_API | ~HdStTextureHandle () |
HdStTextureObjectSharedPtr const & | GetTextureObject () const |
HdStSamplerObjectSharedPtr const & | GetSamplerObject () const |
HdSamplerParameters const & | GetSamplerParameters () const |
size_t | GetMemoryRequest () const |
HdStShaderCodePtr const & | GetShaderCode () const |
HDST_API void | ReallocateSamplerIfNecessary () |
bool | UseBindlessHandles () const |
Represents a texture and sampler that will be allocated and loaded from a texture file during commit, possibly a texture sampler handle and a memory request. It is intended for HdStShaderCode and HdStShaderCode::AddResourcesFromTextures() is called whenever the underlying texture and sampler gets allocated and (re-)loaded so that the shader code can react to, e.g., changing texture sampler handle for bindless or changing texture metadata such as a field bounding box for volumes.
Definition at line 60 of file textureHandle.h.
HDST_API HdStTextureHandle::HdStTextureHandle | ( | HdStTextureObjectSharedPtr const & | textureObject, |
const HdSamplerParameters & | samplerParams, | ||
size_t | memoryRequest, | ||
HdStShaderCodePtr const & | shaderCode, | ||
HdSt_TextureHandleRegistry * | textureHandleRegistry | ||
) |
See HdStResourceRegistry::AllocateTextureHandle for details.
HDST_API HdStTextureHandle::~HdStTextureHandle | ( | ) |
|
inline |
Get how much memory this handle requested for the texture.
Definition at line 97 of file textureHandle.h.
|
inline |
|
inline |
Get sampler parameters.
Definition at line 91 of file textureHandle.h.
|
inline |
Get the shader code associated with this handle.
Definition at line 103 of file textureHandle.h.
|
inline |
Allocate sampler for this handle (not thread-safe).
bool HdStTextureHandle::UseBindlessHandles | ( | ) | const |
Get whether bindless texture handles are enabled.