Fixed issue when trying to Capture 'small alignment' textures
This commit is contained in:
Родитель
865cf1cd71
Коммит
b603c56535
|
@ -110,7 +110,6 @@ namespace
|
|||
|
||||
// Readback resources must be buffers
|
||||
D3D12_RESOURCE_DESC bufferDesc = {};
|
||||
bufferDesc.Alignment = desc.Alignment;
|
||||
bufferDesc.DepthOrArraySize = 1;
|
||||
bufferDesc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER;
|
||||
bufferDesc.Flags = D3D12_RESOURCE_FLAG_NONE;
|
||||
|
@ -120,7 +119,6 @@ namespace
|
|||
bufferDesc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR;
|
||||
bufferDesc.MipLevels = 1;
|
||||
bufferDesc.SampleDesc.Count = 1;
|
||||
bufferDesc.SampleDesc.Quality = 0;
|
||||
|
||||
ComPtr<ID3D12Resource> copySource(pSource);
|
||||
if (desc.SampleDesc.Count > 1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче