Berserk
|
Compiled and linked native shader. More...
#include <RHIShader.hpp>
Public Types | |
enum class | Status : uint32 { PendingCompilation = 0 , Compiled = 1 , FailedCompile = 2 } |
Program may have different status (incorrect shaders mush not crash the application) More... | |
Public Member Functions | |
BRK_API | ~RHIShader () override=default |
virtual BRK_API Status | GetCompilationStatus () const =0 |
virtual BRK_API String | GetCompilerMessage () const =0 |
virtual BRK_API Ref< const RHIShaderMeta > | GetShaderMeta () const =0 |
const StringName & | GetShaderName () const |
RHIShaderLanguage | GetLanguage () const |
const std::vector< RHIShaderStageDesc > & | GetStages () const |
![]() | |
BRK_API | ~RHIResource () override=default |
![]() | |
virtual | ~RefCnt () |
bool | IsUnique () const |
std::int32_t | GetRefs () const |
std::int32_t | AddRef () const |
std::int32_t | RelRef () const |
Protected Attributes | |
StringName | mName |
RHIShaderLanguage | mLanguage |
std::vector< RHIShaderStageDesc > | mStages |
Additional Inherited Members | |
![]() | |
void | Destroy () const override |
Compiled and linked native shader.
|
strong |
|
overridedefault |
Check program status: whether the program was compiled and all stages linked by RHI.
Implemented in GLShader.
Get compiler message about this program compilation. If compilation finished with an error returns error description, otherwise nothing.
Implemented in GLShader.
|
inline |
|
pure virtual |
Get compiled program meta information for params & buffers communication.
PendingCompilation
or FailedCompile
is not valid function call. Implemented in GLShader.
|
inline |
|
inline |
|
protected |
Source code language type
|
protected |
Shader name for debugging
|
protected |
Source code per stages