fix case where no workgroups are dispatched
parent
b00dc11fea
commit
bed612a848
|
@ -148,7 +148,7 @@ namespace MoonWorksComputeSpriteBatch
|
||||||
{
|
{
|
||||||
VertexCount = VertexCount
|
VertexCount = VertexCount
|
||||||
});
|
});
|
||||||
commandBuffer.DispatchCompute(VertexCount / 256, 1, 1, offset);
|
commandBuffer.DispatchCompute(System.Math.Max(1, VertexCount / 256), 1, 1, offset);
|
||||||
|
|
||||||
commandBuffer.BeginRenderPass(renderPass, framebuffer, renderArea, Vector4.Zero);
|
commandBuffer.BeginRenderPass(renderPass, framebuffer, renderArea, Vector4.Zero);
|
||||||
commandBuffer.BindGraphicsPipeline(graphicsPipeline);
|
commandBuffer.BindGraphicsPipeline(graphicsPipeline);
|
||||||
|
|
Loading…
Reference in New Issue