ShaderCompiler
The ShaderCompiler class extends the Shader class to provide additional functionality for compiling and managing shaders. The class supports retrieving the compiled shader binary for a specific platform and obtaining the shader source code for the given platform.
#include <platform/TellusimShader.h>
Inheritance
- Inherits from Shader
Constructors
ShaderCompiler()
Methods
Shader flags.
void setFlags(Flags flags)
Flags getFlags() const
Shader binary.
bool getBinary(Stream &stream, Platform platform = PlatformUnknown) const
Shader source.
String getSource(Platform platform = PlatformUnknown) const
Enums
Flags
Name | Value | Description |
---|---|---|
FlagNone | 0 | |
FlagMSLIndirect | (1 << 0) | Metal indirect shader. |