Fixed issue when trying to Capture 'small alignment' textures

This commit is contained in:
Chuck Walbourn 2020-07-08 17:48:01 -07:00
Родитель 865cf1cd71
Коммит b603c56535
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

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