Skip to content

Commit

Permalink
fixed math for d3d12 quad sample (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Ciampaglia <alan.ciampaglia@ringtailinteractive.com>
  • Loading branch information
Alan-FGR and Alan Ciampaglia authored Aug 4, 2024
1 parent 52847cc commit 08ee8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Direct3D12/03_DrawQuad/DrawQuadApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected override void OnRender()

// Vertex Buffer
int stride = VertexPositionColor.SizeInBytes;
int vertexBufferSize = 3 * stride;
int vertexBufferSize = 4 * stride;
CommandList.IASetVertexBuffers(0, new VertexBufferView(_vertexBuffer.GPUVirtualAddress, vertexBufferSize, stride));

// Index Buffer
Expand Down

0 comments on commit 08ee8f7

Please # to comment.