internal/graphicsdriver/directx: add a comment for Xbox

Updates #2084
This commit is contained in:
Hajime Hoshi 2022-06-11 01:53:06 +09:00
parent 4836266c2b
commit d42bb7d699

View File

@ -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))),