Changeset 99785 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 13, 2023 4:52:19 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
r99688 r99785 6379 6379 void *pvIndexBuffer; 6380 6380 uint32_t cbIndexBuffer; 6381 int rc = dxReadBuffer(pDXDevice, pIB->pBuffer, pIB->indexBufferOffset + startIndexLocation , indexCount * BytesPerIndex, &pvIndexBuffer, &cbIndexBuffer);6381 int rc = dxReadBuffer(pDXDevice, pIB->pBuffer, pIB->indexBufferOffset + startIndexLocation * BytesPerIndex, indexCount * BytesPerIndex, &pvIndexBuffer, &cbIndexBuffer); 6382 6382 AssertRC(rc); 6383 6383 if (RT_SUCCESS(rc)) … … 6969 6969 if (RT_SUCCESS(rc)) 6970 6970 { 6971 /* Copy from the buffer to thestaging buffer. */6971 /* Copy 'Bytes' bytes starting at 'Offset' from the buffer to the start of staging buffer. */ 6972 6972 ID3D11Resource *pDstResource = pDevice->pStagingBuffer; 6973 6973 UINT DstSubresource = 0; 6974 UINT DstX = Offset;6974 UINT DstX = 0; 6975 6975 UINT DstY = 0; 6976 6976 UINT DstZ = 0; … … 6978 6978 UINT SrcSubresource = 0; 6979 6979 D3D11_BOX SrcBox; 6980 SrcBox.left = 0;6980 SrcBox.left = Offset; 6981 6981 SrcBox.top = 0; 6982 6982 SrcBox.front = 0; 6983 SrcBox.right = Bytes;6983 SrcBox.right = Offset + Bytes; 6984 6984 SrcBox.bottom = 1; 6985 6985 SrcBox.back = 1;
Note:
See TracChangeset
for help on using the changeset viewer.