Add validation check that all work group dimension counts are >= 1 #34
|
@ -211,6 +211,11 @@ namespace MoonWorks.Graphics
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
AssertComputePipelineBound();
|
AssertComputePipelineBound();
|
||||||
|
|
||||||
|
if (groupCountX < 1 || groupCountY < 1 || groupCountZ < 1)
|
||||||
|
{
|
||||||
|
throw new ArgumentException("All dimensions for the compute work group must be >= 1!");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Refresh.Refresh_DispatchCompute(
|
Refresh.Refresh_DispatchCompute(
|
||||||
|
|
Loading…
Reference in New Issue