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 ()
 
virtual HDST_API ~HdSt_FallbackLightingShader ()
 
virtual HDST_API ID ComputeHash () const
 
virtual HDST_API std::string GetSource (TfToken const &shaderStageKey) const
 
virtual HDST_API void BindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
 
virtual HDST_API void UnbindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
 Unbinds shader-specific resources. More...
 
virtual HDST_API void AddBindings (HdBindingRequestVector *customBindings)
 Add custom bindings (used by codegen) More...
 
virtual HDST_API void SetCamera (GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix)
 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
 
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
TextureDescriptorVector 
GetTextures () const
 
virtual HDST_API
NamedTextureHandleVector const
GetNamedTextureHandles () const
 

Additional Inherited Members

- Public Types inherited from HdStShaderCode
typedef size_t ID
 
typedef std::vector
< TextureDescriptor
TextureDescriptorVector
 
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 47 of file fallbackLightingShader.h.

Constructor & Destructor Documentation

HDST_API HdSt_FallbackLightingShader::HdSt_FallbackLightingShader ( )
virtual HDST_API HdSt_FallbackLightingShader::~HdSt_FallbackLightingShader ( )
virtual

Member Function Documentation

virtual HDST_API void HdSt_FallbackLightingShader::AddBindings ( HdBindingRequestVector customBindings)
virtual

Add custom bindings (used by codegen)

Implements HdStShaderCode.

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

virtual HDST_API ID HdSt_FallbackLightingShader::ComputeHash ( ) const
virtual

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.

virtual HDST_API std::string HdSt_FallbackLightingShader::GetSource ( TfToken const shaderStageKey) const
virtual

Returns the shader source provided by this shader for shaderStageKey

Implements HdStShaderCode.

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

Sets camera state.

Implements HdStLightingShader.

virtual HDST_API void HdSt_FallbackLightingShader::UnbindResources ( int  program,
HdSt_ResourceBinder const binder,
HdRenderPassState const state 
)
overridevirtual

Unbinds shader-specific resources.

Implements HdStShaderCode.


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