Fixed issue when trying to Capture 'small alignment' textures
This commit is contained in:
parent
6a0f5a97d9
commit
bfa3a11aee
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user