24 #ifndef PXR_IMAGING_HDST_SIMPLE_LIGHTING_SHADER_H
25 #define PXR_IMAGING_HDST_SIMPLE_LIGHTING_SHADER_H
43 std::shared_ptr<class HdStSimpleLightingShader>;
65 HdSt_ResourceBinder
const &binder,
69 HdSt_ResourceBinder
const &binder,
94 return _lightingContext;
109 return _domeLightEnvironmentTextureHandle;
124 GlfSimpleLightingContextRefPtr _lightingContext;
125 GlfBindingMapRefPtr _bindingMap;
127 std::unique_ptr<class HioGlslfx> _glslfx;
144 #endif // PXR_IMAGING_HDST_SIMPLE_LIGHTING_SHADER_H
const HdStTextureHandleSharedPtr & GetDomeLightEnvironmentTextureHandle() const
HDST_API void SetLightingState(GlfSimpleLightingContextPtr const &lightingContext)
GlfSimpleLightingContextRefPtr GetLightingContext() const
GLbitfield GLuint program
GLuint const GLchar * name
HDST_API ID ComputeHash() const override
HdShader overrides.
HDST_API void BindResources(int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
HDST_API std::string GetSource(TfToken const &shaderStageKey) const override
HDST_API HdSt_MaterialParamVector const & GetParams() const override
HdStShaderCode overrides.
GLsizei const GLchar *const * string
HDST_API NamedTextureHandleVector const & GetNamedTextureHandles() const override
HDST_API void AllocateTextureHandles(HdSceneDelegate *delegate)
std::shared_ptr< class HdStSimpleLightingShader > HdStSimpleLightingShaderSharedPtr
HDST_API void AddResourcesFromTextures(ResourceContext &ctx) const override
HDST_API void SetCamera(GfMatrix4d const &worldToViewMatrix, GfMatrix4d const &projectionMatrix) override
HdStLightingShader overrides.
HDST_API ~HdStSimpleLightingShader() override
HDST_API void UnbindResources(int program, HdSt_ResourceBinder const &binder, HdRenderPassState const &state) override
Unbinds shader-specific resources.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
std::vector< NamedTextureHandle > NamedTextureHandleVector
std::shared_ptr< class HdStTextureHandle > HdStTextureHandleSharedPtr
HDST_API void SetLightingStateFromOpenGL()
#define PXR_NAMESPACE_CLOSE_SCOPE
HDST_API const HdStTextureHandleSharedPtr & GetTextureHandle(const TfToken &name) const
TF_DECLARE_REF_PTRS(GlfBindingMap)
HDST_API void AddBindings(HdBindingRequestVector *customBindings) override
Add custom bindings (used by codegen)
std::vector< class HdSt_MaterialParam > HdSt_MaterialParamVector
HDST_API HdStSimpleLightingShader()
std::vector< class HdBindingRequest > HdBindingRequestVector