Skip to main content

MTLKernel

The MTLKernel class is a compute kernel designed for Metal, inheriting from the Kernel class. It allows enabling or disabling indirect command buffers and provides access to the compute function.

#include <platform/TellusimKernel.h>

Inheritance

Constructors

MTLKernel()

Methods

Indirect command buffer.

void setIndirect(bool enabled)
bool isIndirect() const
void *getComputeFunction() const