1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

Fixed issue when trying to Capture 'small alignment' textures

This commit is contained in:
Chuck Walbourn 2020-07-08 17:46:14 -07:00
parent 6a0f5a97d9
commit bfa3a11aee
2 changed files with 0 additions and 4 deletions

View File

@ -194,7 +194,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;
@ -204,7 +203,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)

View File

@ -708,7 +708,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;
@ -718,7 +717,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)