Table of Contents

Class GpuDispatch

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Compute dispatches that skip an empty grid instead of failing it.

public static class GpuDispatch
Inheritance
GpuDispatch
Inherited Members

Remarks

Unity refuses a dispatch with a zero (or negative) group count and logs "Thread group size must be above zero" for it, every time. A grid worked out as (count + 63) / 64 is empty whenever the count is: nothing to do, which skipping does exactly. The message names nothing (a web player's console shows no managed stack), and a player on Firefox had it repeat without end (2026-11-11), so the first skip from each call site is reported once, by file and line, with the counts it was given: what makes it empty there can then be looked at.

Methods

DispatchComputeChecked(CommandBuffer, ComputeShader, int, int, int, int, string, int)

public static void DispatchComputeChecked(this CommandBuffer cmd, ComputeShader compute, int kernel, int x, int y, int z, string file = "", int line = 0)

Parameters

cmd CommandBuffer
compute ComputeShader
kernel int
x int
y int
z int
file string
line int

DispatchComputeChecked(ComputeCommandBuffer, ComputeShader, int, int, int, int, string, int)

public static void DispatchComputeChecked(this ComputeCommandBuffer cmd, ComputeShader compute, int kernel, int x, int y, int z, string file = "", int line = 0)

Parameters

cmd ComputeCommandBuffer
compute ComputeShader
kernel int
x int
y int
z int
file string
line int

DispatchComputeChecked(UnsafeCommandBuffer, ComputeShader, int, int, int, int, string, int)

public static void DispatchComputeChecked(this UnsafeCommandBuffer cmd, ComputeShader compute, int kernel, int x, int y, int z, string file = "", int line = 0)

Parameters

cmd UnsafeCommandBuffer
compute ComputeShader
kernel int
x int
y int
z int
file string
line int