Skip to main content

MTLSampler

The MTLSampler class extends the Sampler class and provides additional functionality specific to Metal, including support for indirect command buffers. It allows enabling or disabling the indirect command feature, which is useful for optimizing rendering commands and reducing CPU overhead.

#include <platform/TellusimSampler.h>

Inheritance​

Constructors​

MTLSampler()

Methods​

Indirect command buffer.

void setIndirect(bool enabled)
bool isIndirect() const