HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glslfxShader.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_HD_ST_GLSLFX_SHADER_H
8 #define PXR_IMAGING_HD_ST_GLSLFX_SHADER_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hdSt/api.h"
12 #include "pxr/imaging/hd/version.h"
13 #include "pxr/imaging/hdSt/materialNetworkShader.h"
14 
16 
17 using HioGlslfxSharedPtr = std::shared_ptr<class HioGlslfx>;
18 
19 /// \class HdStGLSLFXShader
20 ///
21 /// A simple specialization of HdSt_MaterialNetworkShader used to
22 /// load the built-in fallback material network.
23 ///
24 class HdStGLSLFXShader final : public HdSt_MaterialNetworkShader
25 {
26 public:
27  HDST_API
28  HdStGLSLFXShader(HioGlslfxSharedPtr const& glslfx);
29  HDST_API
30  ~HdStGLSLFXShader() override;
31 
32  /// If the prim is based on asset, reload that asset.
33  HDST_API
34  void Reload() override;
35 
36 private:
37  HioGlslfxSharedPtr _glslfx;
38 };
39 
40 
42 
43 #endif //PXR_IMAGING_HD_ST_GLSLFX_SHADER_H
HDST_API ~HdStGLSLFXShader() override
HDST_API HdStGLSLFXShader(HioGlslfxSharedPtr const &glslfx)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define HDST_API
Definition: api.h:23
std::shared_ptr< class HioGlslfx > HioGlslfxSharedPtr
Definition: glslfxShader.h:17
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
HDST_API void Reload() override
If the prim is based on asset, reload that asset.