HDK
|
#include <textureBinder.h>
Public Types | |
using | NamedTextureHandle = HdStShaderCode::NamedTextureHandle |
using | NamedTextureHandleVector = HdStShaderCode::NamedTextureHandleVector |
Static Public Member Functions | |
static void | GetBufferSpecs (const NamedTextureHandleVector &textures, HdBufferSpecVector *specs, bool doublesSupported) |
static void | ComputeBufferSources (const NamedTextureHandleVector &textures, HdBufferSourceSharedPtrVector *sources, bool doublesSupported) |
static void | BindResources (HdSt_ResourceBinder const &binder, const NamedTextureHandleVector &textures) |
static void | UnbindResources (HdSt_ResourceBinder const &binder, const NamedTextureHandleVector &textures) |
static void | GetBindingDescs (HdSt_ResourceBinder const &binder, HgiResourceBindingsDesc *bindingsDesc, const NamedTextureHandleVector &textures) |
A class helping HdStShaderCode with binding textures.
This class helps binding textures or populating the shader bar with texture sampler handles if bindless textures are used. It also includes writing texture metadata such as the sampling transform to the shader bar.
Definition at line 45 of file textureBinder.h.
Definition at line 48 of file textureBinder.h.
Definition at line 50 of file textureBinder.h.
|
static |
Bind textures.
|
static |
Compute buffer sources for shader bar.
This works in conjunction with GetBufferSpecs, but unlike GetBufferSpecs is extracting information from the texture handles and thus can only be called after the textures have been committed in HdStShaderCode::AddResourcesFromTextures().
|
static |
Get Bindings Descs
|
static |
Add buffer specs necessary for the textures (e.g., for bindless texture sampler handles or sampling transform).
|
static |
Unbind textures.