HDK
|
#include <computeShader.h>
Public Member Functions | |
HDST_API | HdStComputeShader () |
virtual HDST_API | ~HdStComputeShader () |
![]() | |
HDST_API | HdStShaderCode () |
virtual HDST_API | ~HdStShaderCode () |
virtual ID | ComputeTextureSourceHash () const |
virtual HDST_API bool | IsEnabledPrimvarFiltering () const |
Returns whether primvar filtering is enabled for this shader. More... | |
virtual HDST_API TfTokenVector const & | GetPrimvarNames () const |
Returns the names of primvar that are used by this shader. More... | |
virtual HDST_API TfToken | GetMaterialTag () const |
virtual HDST_API void | AddResourcesFromTextures (ResourceContext &ctx) const |
virtual HDST_API NamedTextureHandleVector const & | GetNamedTextureHandles () const |
HdShader Virtual Interface // | |
virtual HDST_API std::string | GetSource (TfToken const &shaderStageKey) const |
Setter method for prim. More... | |
virtual HDST_API HdSt_MaterialParamVector const & | GetParams () const |
Setter method for prim. More... | |
virtual HDST_API HdBufferArrayRangeSharedPtr const & | GetShaderData () const |
Setter method for prim. More... | |
virtual HDST_API TextureDescriptorVector | GetTextures () const |
Setter method for prim. More... | |
virtual HDST_API void | BindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override |
Setter method for prim. More... | |
virtual HDST_API void | UnbindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override |
Setter method for prim. More... | |
virtual HDST_API void | AddBindings (HdBindingRequestVector *customBindings) |
Setter method for prim. More... | |
virtual HDST_API ID | ComputeHash () const |
Setter method for prim. More... | |
HDST_API void | SetComputeSource (const std::string &source) |
Setter method for prim. More... | |
virtual HDST_API void | Reload () |
If the prim is based on asset, reload that asset. More... | |
HDST_API void | _SetSource (TfToken const &shaderStageKey, std::string const &source) |
Setter method for prim. More... | |
Additional Inherited Members | |
![]() | |
typedef size_t | ID |
typedef std::vector < TextureDescriptor > | TextureDescriptorVector |
using | NamedTextureHandleVector = std::vector< NamedTextureHandle > |
![]() | |
static HDST_API ID | ComputeHash (HdStShaderCodeSharedPtrVector const &shaders) |
Returns the combined hash values of multiple shaders. More... | |
A scene-based ComputeShader object.
When compute shaders are expressed in the scene graph, the HdSceneDelegate can use this object to express these compute shaders in Storm. In addition to the shader itself, a binding from the Computation Sprim to the ComputeShader must be expressed as well.
Definition at line 54 of file computeShader.h.
HDST_API HdStComputeShader::HdStComputeShader | ( | ) |
|
virtual |
|
protected |
Setter method for prim.
|
virtual |
Setter method for prim.
Implements HdStShaderCode.
|
overridevirtual |
Setter method for prim.
Implements HdStShaderCode.
Setter method for prim.
Implements HdStShaderCode.
|
virtual |
Setter method for prim.
Reimplemented from HdStShaderCode.
|
virtual |
Setter method for prim.
Reimplemented from HdStShaderCode.
|
virtual |
Setter method for prim.
Implements HdStShaderCode.
|
virtual |
Setter method for prim.
Reimplemented from HdStShaderCode.
If the prim is based on asset, reload that asset.
HDST_API void HdStComputeShader::SetComputeSource | ( | const std::string & | source | ) |
Setter method for prim.
|
overridevirtual |
Setter method for prim.
Implements HdStShaderCode.