public void Dispatch( int threadGroupCountX, int threadGroupCountY = 1, int threadGroupCountZ = 1 ) { lock (deviceContext) { ApplyGpuState(); deviceContext.Dispatch( threadGroupCountX, threadGroupCountY, threadGroupCountZ ); } }