mgpuComputeShaderBuildPipeline function

bool mgpuComputeShaderBuildPipeline(
  1. MGPUComputeShader shader
)

Compiles shader's pipeline for its kernel and bindings without dispatching; true when it exists. A direct export call like mgpuDispatch: the compile is the one a first dispatch does, and it never suspends.

Implementation

bool mgpuComputeShaderBuildPipeline(MGPUComputeShader shader) =>
    _mgpuComputeShaderBuildPipeline(shader).toDartInt == 1;