From d42bb7d699600a67f22caf95b736d3a93eaf2768 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 11 Jun 2022 01:53:06 +0900 Subject: [PATCH] internal/graphicsdriver/directx: add a comment for Xbox Updates #2084 --- internal/graphicsdriver/directx/graphics_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/graphicsdriver/directx/graphics_windows.go b/internal/graphicsdriver/directx/graphics_windows.go index 41a1bd0d4..397ced5fa 100644 --- a/internal/graphicsdriver/directx/graphics_windows.go +++ b/internal/graphicsdriver/directx/graphics_windows.go @@ -1136,6 +1136,7 @@ func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, srcs [graphics.Sh SizeInBytes: graphics.IndicesNum * graphics.VertexFloatNum * uint32(unsafe.Sizeof(float32(0))), StrideInBytes: graphics.VertexFloatNum * uint32(unsafe.Sizeof(float32(0))), }) + // TODO: Fix a flaky crash at this function IASetIndexBuffer on Xbox. g.drawCommandList.IASetIndexBuffer(&_D3D12_INDEX_BUFFER_VIEW{ BufferLocation: g.indices[g.frameIndex][len(g.indices[g.frameIndex])-1].GetGPUVirtualAddress(), SizeInBytes: graphics.IndicesNum * uint32(unsafe.Sizeof(uint16(0))),