HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStGLSLFXShader Class Referencefinal

#include <glslfxShader.h>

+ Inheritance diagram for HdStGLSLFXShader:

Public Member Functions

HDST_API HdStGLSLFXShader (HioGlslfxSharedPtr const &glslfx)
 
HDST_API ~HdStGLSLFXShader () override
 
HDST_API void Reload () override
 If the prim is based on asset, reload that asset. More...
 
- Public Member Functions inherited from HdStSurfaceShader
HDST_API HdStSurfaceShader ()
 
HDST_API ~HdStSurfaceShader () override
 
HDST_API std::string GetSource (TfToken const &shaderStageKey) const override
 Setter method for prim. More...
 
HDST_API
HdSt_MaterialParamVector const
GetParams () const override
 Setter method for prim. More...
 
HDST_API void SetEnabledPrimvarFiltering (bool enabled)
 Setter method for prim. More...
 
HDST_API bool IsEnabledPrimvarFiltering () const override
 Setter method for prim. More...
 
HDST_API TfTokenVector constGetPrimvarNames () const override
 Setter method for prim. More...
 
HDST_API
HdBufferArrayRangeSharedPtr
const
GetShaderData () const override
 Setter method for prim. More...
 
HDST_API TextureDescriptorVector GetTextures () const override
 Setter method for prim. More...
 
HDST_API
NamedTextureHandleVector const
GetNamedTextureHandles () const override
 Setter method for prim. More...
 
HDST_API void BindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
 Setter method for prim. More...
 
HDST_API void UnbindResources (int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
 Setter method for prim. More...
 
HDST_API void AddBindings (HdBindingRequestVector *customBindings) override
 Setter method for prim. More...
 
HDST_API ID ComputeHash () const override
 Setter method for prim. More...
 
HDST_API ID ComputeTextureSourceHash () const override
 Setter method for prim. More...
 
HDST_API TfToken GetMaterialTag () const override
 Setter method for prim. More...
 
HDST_API void SetFragmentSource (const std::string &source)
 Setter method for prim. More...
 
HDST_API void SetGeometrySource (const std::string &source)
 Setter method for prim. More...
 
HDST_API void SetParams (const HdSt_MaterialParamVector &params)
 Setter method for prim. More...
 
HDST_API void SetTextureDescriptors (const TextureDescriptorVector &texDesc)
 Setter method for prim. More...
 
HDST_API void SetNamedTextureHandles (const NamedTextureHandleVector &)
 Setter method for prim. More...
 
HDST_API void SetBufferSources (HdBufferSpecVector const &bufferSpecs, HdBufferSourceSharedPtrVector &&bufferSources, HdStResourceRegistrySharedPtr const &resourceRegistry)
 Setter method for prim. More...
 
HDST_API void AddResourcesFromTextures (ResourceContext &ctx) const override
 
HDST_API void SetMaterialTag (TfToken const &materialTag)
 Setter method for prim. More...
 
- Public Member Functions inherited from HdStShaderCode
HDST_API HdStShaderCode ()
 
virtual HDST_API ~HdStShaderCode ()
 

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 HdStSurfaceShader
static HDST_API bool CanAggregate (HdStShaderCodeSharedPtr const &shaderA, HdStShaderCodeSharedPtr const &shaderB)
 Returns if the two shaders can be aggregated into the same draw batch. More...
 
static HDST_API void AddFallbackValueToSpecsAndSources (const HdSt_MaterialParam &param, HdBufferSpecVector *const specs, HdBufferSourceSharedPtrVector *const sources)
 
- Static Public Member Functions inherited from HdStShaderCode
static HDST_API ID ComputeHash (HdStShaderCodeSharedPtrVector const &shaders)
 Returns the combined hash values of multiple shaders. More...
 
- Protected Member Functions inherited from HdStSurfaceShader
HDST_API void _SetSource (TfToken const &shaderStageKey, std::string const &source)
 Setter method for prim. More...
 
HDST_API ID _ComputeHash () const
 Setter method for prim. More...
 
HDST_API ID _ComputeTextureSourceHash () const
 Setter method for prim. More...
 

Detailed Description

Definition at line 37 of file glslfxShader.h.

Constructor & Destructor Documentation

HDST_API HdStGLSLFXShader::HdStGLSLFXShader ( HioGlslfxSharedPtr const glslfx)
HDST_API HdStGLSLFXShader::~HdStGLSLFXShader ( )
override

Member Function Documentation

HDST_API void HdStGLSLFXShader::Reload ( )
overridevirtual

If the prim is based on asset, reload that asset.

Reimplemented from HdStSurfaceShader.


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