mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 19:50:13 +02:00
Get rid of redundancies (#260)
This commit is contained in:
parent
7a08ff19fc
commit
bcf514174c
@ -759,17 +759,9 @@ HRESULT DirectX::CaptureTexture(
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
UINT arraySize, depth;
|
||||
if (desc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D)
|
||||
{
|
||||
arraySize = 1;
|
||||
depth = desc.DepthOrArraySize;
|
||||
}
|
||||
else
|
||||
{
|
||||
arraySize = desc.DepthOrArraySize;
|
||||
depth = 1;
|
||||
}
|
||||
UINT arraySize = (desc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D)
|
||||
? 1
|
||||
: desc.DepthOrArraySize;
|
||||
|
||||
for (UINT plane = 0; plane < numberOfPlanes; ++plane)
|
||||
{
|
||||
|
@ -361,8 +361,6 @@ namespace
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
blobSize = mBlob.GetBufferSize();
|
||||
|
||||
auto ptr = static_cast<uint8_t*>(mBlob.GetBufferPointer());
|
||||
if (m_streamEOF < size.LowPart)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user