Add validation check that all work group dimension counts are >= 1 (#34)
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com> Reviewed-on: #34 Co-authored-by: TheSpydog <thespydog@noreply.example.org> Co-committed-by: TheSpydog <thespydog@noreply.example.org>pull/35/head
parent
5533eeb2fd
commit
c2ef78d136
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue