Skip to content

Commit

Permalink
fix: Wrong Instanced call used for DrawInstanced in CommandList.Direc…
Browse files Browse the repository at this point in the history
…t3D.cs (#2482)

CommandList.DrawInstanced(Buffer argumentsBuffer, int alignedByteOffsetForArgs = 0)
NativeDeviceContext was DrawIndexedInstancedIndirect but should be DrawInstancedIndirect
  • Loading branch information
kopffarben authored Oct 9, 2024
1 parent 2af6925 commit 4c46fdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public void DrawInstanced(Buffer argumentsBuffer, int alignedByteOffsetForArgs =

PrepareDraw();

NativeDeviceContext.DrawIndexedInstancedIndirect(argumentsBuffer.NativeBuffer, alignedByteOffsetForArgs);
NativeDeviceContext.DrawInstancedIndirect(argumentsBuffer.NativeBuffer, alignedByteOffsetForArgs);

GraphicsDevice.FrameDrawCalls++;
}
Expand Down

0 comments on commit 4c46fdc

Please sign in to comment.