diff --git a/src/Graphics/CommandBuffer.cs b/src/Graphics/CommandBuffer.cs index 923e766..7782c2c 100644 --- a/src/Graphics/CommandBuffer.cs +++ b/src/Graphics/CommandBuffer.cs @@ -211,6 +211,11 @@ namespace MoonWorks.Graphics { #if DEBUG AssertComputePipelineBound(); + + if (groupCountX < 1 || groupCountY < 1 || groupCountZ < 1) + { + throw new ArgumentException("All dimensions for the compute work group must be >= 1!"); + } #endif Refresh.Refresh_DispatchCompute(