28 #ifndef BERSERK_SHADERTECHNIQUE_HPP
29 #define BERSERK_SHADERTECHNIQUE_HPP
119 std::vector<Ref<ShaderPass>> mPasses;
121 class Shader *mShader =
nullptr;
123 mutable bool mIsCompiled =
false;
#define BRK_NS_END
Definition: Config.hpp:48
#define BRK_API
Definition: Config.hpp:32
std::uint32_t uint32
Definition: Typedefs.hpp:44
Graphics pipeline descriptor.
Definition: RHIGraphicsPipeline.hpp:208
Reference counted base object.
Definition: RefCnt.hpp:52
Technique tags used to select techniques.
Represents particular approach to draw single object.
Definition: ShaderTechnique.hpp:64
BRK_API void SetRHILanguage(RHIShaderLanguage language)
Definition: ShaderTechnique.cpp:46
BRK_API class Shader * GetShader() const
Definition: ShaderTechnique.hpp:107
BRK_API RHIType GetRHIType() const
Definition: ShaderTechnique.hpp:101
BRK_API void SetPasses(std::vector< Ref< ShaderPass >> passes)
Definition: ShaderTechnique.cpp:50
BRK_API RHIShaderLanguage GetRHILanguage() const
Definition: ShaderTechnique.hpp:103
BRK_API void SetShader(class Shader *shader)
Definition: ShaderTechnique.cpp:55
BRK_API const StringName & GetName() const
Definition: ShaderTechnique.hpp:97
BRK_API const ShaderTechniqueTags & GetTags() const
Definition: ShaderTechnique.hpp:99
BRK_API ShaderTechnique()=default
BRK_API void SetRHIType(RHIType rhiType)
Definition: ShaderTechnique.cpp:42
BRK_API bool IsCompiled() const
Definition: ShaderTechnique.cpp:64
BRK_API void SetName(StringName name)
Definition: ShaderTechnique.cpp:34
BRK_API ~ShaderTechnique() override=default
BRK_API void FillPipelineDesc(RHIGraphicsPipelineDesc &desc, uint32 passIdx) const
Definition: ShaderTechnique.cpp:59
BRK_API const std::vector< Ref< ShaderPass > > & GetPasses() const
Definition: ShaderTechnique.hpp:105
BRK_API Ref< const ShaderPass > GetPass(const StringName &name) const
Definition: ShaderTechnique.cpp:74
BRK_API size_t GetPassesCount() const
Definition: ShaderTechnique.hpp:94
BRK_API void SetTags(const ShaderTechniqueTags &tags)
Definition: ShaderTechnique.cpp:38
Defines complete rendering flow for the object.
Definition: Shader.hpp:86
Cached shared utf-8 string id.
Definition: StringName.hpp:61
RHIType
Definition: RHIDefs.hpp:43
RHIShaderLanguage
Definition: RHIDefs.hpp:127
Definition: GLDevice.cpp:46