mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 13:03:05 +01:00
D3D12: Fixed texture update.
This commit is contained in:
@@ -4377,8 +4377,9 @@ data.NumQualityLevels = 0;
|
||||
, &totalBytes
|
||||
);
|
||||
|
||||
ID3D12Resource* staging = createCommittedResource(s_renderD3D12->m_device, HeapProperty::Upload, totalBytes);
|
||||
rowPitch = bx::strideAlign(uint32_t(rowPitch), D3D12_TEXTURE_DATA_PITCH_ALIGNMENT);
|
||||
|
||||
ID3D12Resource* staging = createCommittedResource(s_renderD3D12->m_device, HeapProperty::Upload, totalBytes);
|
||||
uint8_t* data;
|
||||
|
||||
DX_CHECK(staging->Map(0, NULL, (void**)&data) );
|
||||
|
||||
Reference in New Issue
Block a user