HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStLightingShader Class Referenceabstract

#include <lightingShader.h>

+ Inheritance diagram for HdStLightingShader:

Public Member Functions

HDST_API HdStLightingShader ()
 
virtual HDST_API ~HdStLightingShader ()
 
virtual void SetCamera (GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix)=0
 Sets camera state. More...
 
- Public Member Functions inherited from HdStShaderCode
HDST_API HdStShaderCode ()
 
virtual HDST_API ~HdStShaderCode ()
 
virtual ID ComputeHash () const =0
 
virtual ID ComputeTextureSourceHash () const
 
virtual std::string GetSource (TfToken const &shaderStageKey) const =0
 
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 void BindResources (int program, HdSt_ResourceBinder const &binder)=0
 
virtual void UnbindResources (int program, HdSt_ResourceBinder const &binder)=0
 Unbinds shader-specific resources. More...
 
virtual void AddBindings (HdStBindingRequestVector *customBindings)=0
 Add custom bindings (used by codegen) More...
 
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 lighting shader base class.

Definition at line 40 of file lightingShader.h.

Constructor & Destructor Documentation

HDST_API HdStLightingShader::HdStLightingShader ( )
virtual HDST_API HdStLightingShader::~HdStLightingShader ( )
virtual

Member Function Documentation

virtual void HdStLightingShader::SetCamera ( GfMatrix4d const worldToViewMatrix,
GfMatrix4d const projectionMatrix 
)
pure virtual

Sets camera state.

Implemented in HdStSimpleLightingShader, and HdSt_FallbackLightingShader.


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