Skip to main content

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

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

NameValueDescription
FlagNone0
FlagMSLIndirect(1 << 0)Metal indirect shader.