Skip to main content

MTLShader

The MTLShader class extends the Shader class to specialize in managing shaders for Metal. It provides methods to retrieve the underlying Metal shader library and function, enabling integration with Metal.

#include <platform/TellusimShader.h>

Inheritance​

Constructors​

MTLShader()

Methods​

Indirect command buffer.

void setIndirect(bool enabled)
bool isIndirect() const

Native shader.

void *getLibrary() const
void *getFunction() const