HDK
|
#include <fallbackLightingShader.h>
Public Member Functions | |
HDST_API | HdSt_FallbackLightingShader () |
HDST_API | ~HdSt_FallbackLightingShader () override |
HDST_API ID | ComputeHash () const override |
HDST_API std::string | GetSource (TfToken const &shaderStageKey) const override |
HDST_API void | BindResources (int program, HdSt_ResourceBinder const &binder) override |
HDST_API void | UnbindResources (int program, HdSt_ResourceBinder const &binder) override |
Unbinds shader-specific resources. More... | |
HDST_API void | AddBindings (HdStBindingRequestVector *customBindings) override |
Add custom bindings (used by codegen) More... | |
HDST_API void | SetCamera (GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix) override |
Sets camera state. More... | |
Public Member Functions inherited from HdStLightingShader | |
HDST_API | HdStLightingShader () |
virtual HDST_API | ~HdStLightingShader () |
Public Member Functions inherited from HdStShaderCode | |
HDST_API | HdStShaderCode () |
virtual HDST_API | ~HdStShaderCode () |
virtual ID | ComputeTextureSourceHash () const |
HDST_API VtDictionary | GetLayout (TfTokenVector const &shaderStageKeys) const |
virtual HDST_API HdSt_MaterialParamVector const & | GetParams () const |
Returns the shader parameters for this shader. More... | |
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 HdBufferArrayRangeSharedPtr const & | GetShaderData () const |
virtual HDST_API TfToken | GetMaterialTag () const |
virtual HDST_API void | AddResourcesFromTextures (ResourceContext &ctx) const |
virtual HDST_API NamedTextureHandleVector const & | GetNamedTextureHandles () const |
Additional Inherited Members | |
Public Types inherited from HdStShaderCode | |
typedef size_t | ID |
using | NamedTextureHandleVector = std::vector< NamedTextureHandle > |
Static Public Member Functions inherited from HdStShaderCode | |
static HDST_API ID | ComputeHash (HdStShaderCodeSharedPtrVector const &shaders) |
Returns the combined hash values of multiple shaders. More... | |
A shader that provides fallback lighting behavior.
Definition at line 41 of file fallbackLightingShader.h.
HDST_API HdSt_FallbackLightingShader::HdSt_FallbackLightingShader | ( | ) |
|
override |
|
overridevirtual |
Add custom bindings (used by codegen)
Implements HdStShaderCode.
|
overridevirtual |
Binds shader-specific resources to program XXX: this interface is meant to be used for bridging the GlfSimpleLightingContext mechanism, and not for generic use-cases.
Implements HdStShaderCode.
Returns the hash value of the shader code and configuration.
It is computed from the the GLSL code as well as the resource signature of the shader (as determined from its parameters). If two shaders have the same hash, the GLSL code as expanded by codegen should also be the same.
Implements HdStShaderCode.
|
overridevirtual |
Returns the shader source provided by this shader for shaderStageKey
Implements HdStShaderCode.
|
overridevirtual |
Sets camera state.
Implements HdStLightingShader.
|
overridevirtual |
Unbinds shader-specific resources.
Implements HdStShaderCode.