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

A lighting shader base class. More...

+ Inheritance diagram for HdStLightingShader:

Public Member Functions

virtual void SetCamera (GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix)=0
 Sets camera state. More...
 
- Public Member Functions inherited from HdStShaderCode
virtual ID ComputeHash () const =0
 Returns the hash value of the shader code and configuration. More...
 
virtual ID ComputeTextureSourceHash () const
 Returns the hash value of the paths of the texture prims consumed by this shader. More...
 
virtual std::string GetSource (TfToken const &shaderStageKey) const =0
 Returns the shader source provided by this shader for shaderStageKey. More...
 
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
 Returns a buffer which stores parameter fallback values and texture handles. More...
 
virtual void BindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state)=0
 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. More...
 
virtual void UnbindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state)=0
 Unbinds shader-specific resources. More...
 
virtual void AddBindings (HdBindingRequestVector *customBindings)=0
 Add custom bindings (used by codegen) More...
 
virtual HDST_API TfToken GetMaterialTag () const
 Material tags can be set in the meta-data of a glslfx file to control what rprim collection that prims using this shader should go into. More...
 
virtual HDST_API void AddResourcesFromTextures (ResourceContext &ctx) const
 This function is called after textures have been allocated and loaded to add buffer sources and computations to the resource registry that require texture meta data not available until the texture is allocated or loaded. More...
 
virtual HDST_API
TextureDescriptorVector 
GetTextures () const
 
virtual HDST_API
NamedTextureHandleVector const & 
GetNamedTextureHandles () const
 Textures that need to be bound for this shader. More...
 

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 lighting shader base class.

Definition at line 40 of file lightingShader.h.

Member Function Documentation

virtual void SetCamera ( GfMatrix4d const &  worldToViewMatrix,
GfMatrix4d const &  projectionMatrix 
)
pure virtual

Sets camera state.

Implemented in HdStSimpleLightingShader.


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