HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdSt_FallbackLightingShader Class Reference

#include <fallbackLightingShader.h>

+ Inheritance diagram for HdSt_FallbackLightingShader:

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...
 

Detailed Description

A shader that provides fallback lighting behavior.

Definition at line 41 of file fallbackLightingShader.h.

Constructor & Destructor Documentation

HDST_API HdSt_FallbackLightingShader::HdSt_FallbackLightingShader ( )
HDST_API HdSt_FallbackLightingShader::~HdSt_FallbackLightingShader ( )
override

Member Function Documentation

HDST_API void HdSt_FallbackLightingShader::AddBindings ( HdStBindingRequestVector customBindings)
overridevirtual

Add custom bindings (used by codegen)

Implements HdStShaderCode.

HDST_API void HdSt_FallbackLightingShader::BindResources ( int  program,
HdSt_ResourceBinder const &  binder 
)
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.

HDST_API ID HdSt_FallbackLightingShader::ComputeHash ( ) const
overridevirtual

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.

HDST_API std::string HdSt_FallbackLightingShader::GetSource ( TfToken const &  shaderStageKey) const
overridevirtual

Returns the shader source provided by this shader for shaderStageKey

Implements HdStShaderCode.

HDST_API void HdSt_FallbackLightingShader::SetCamera ( GfMatrix4d const &  worldToViewMatrix,
GfMatrix4d const &  projectionMatrix 
)
overridevirtual

Sets camera state.

Implements HdStLightingShader.

HDST_API void HdSt_FallbackLightingShader::UnbindResources ( int  program,
HdSt_ResourceBinder const &  binder 
)
overridevirtual

Unbinds shader-specific resources.

Implements HdStShaderCode.


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