WIP
This commit is contained in:
@@ -345,6 +345,15 @@ uint8_t* D3D12Manager::ReadbackTexture(ID3D12Resource* texture, uint32_t width,
|
||||
|
||||
m_device->GetCopyableFootprints(&desc, 0, 1, 0, &layout, &num_rows, &row_size, &total_bytes);
|
||||
|
||||
// DEBUG: Check if desc dimensions match parameters
|
||||
printf("[D3D12Manager::ReadbackTexture] DEBUG:\n");
|
||||
printf(" Input params: width=%u, height=%u\n", width, height);
|
||||
printf(" desc.Width=%llu, desc.Height=%u\n", desc.Width, desc.Height);
|
||||
printf(" layout.Footprint: Width=%u, Height=%u, Depth=%u, RowPitch=%u\n",
|
||||
layout.Footprint.Width, layout.Footprint.Height,
|
||||
layout.Footprint.Depth, layout.Footprint.RowPitch);
|
||||
printf(" num_rows=%u, row_size=%llu, total_bytes=%llu\n", num_rows, row_size, total_bytes);
|
||||
|
||||
// Create readback buffer
|
||||
D3D12_HEAP_PROPERTIES readback_heap_props = {};
|
||||
readback_heap_props.Type = D3D12_HEAP_TYPE_READBACK;
|
||||
|
||||
Reference in New Issue
Block a user