|
@@ -4614,13 +4614,13 @@ data.NumQualityLevels = 0;
|
|
|
|
|
|
|
|
D3D12_TEXTURE_COPY_LOCATION dstLocation = { dst.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { dstZ*dst.m_numMips+blit.m_dstMip } };
|
|
D3D12_TEXTURE_COPY_LOCATION dstLocation = { dst.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { dstZ*dst.m_numMips+blit.m_dstMip } };
|
|
|
D3D12_TEXTURE_COPY_LOCATION srcLocation = { src.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { srcZ*src.m_numMips+blit.m_srcMip } };
|
|
D3D12_TEXTURE_COPY_LOCATION srcLocation = { src.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { srcZ*src.m_numMips+blit.m_srcMip } };
|
|
|
- bool depth = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
|
|
|
|
|
|
+ bool depthStencil = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
|
|
m_commandList->CopyTextureRegion(&dstLocation
|
|
m_commandList->CopyTextureRegion(&dstLocation
|
|
|
, blit.m_dstX
|
|
, blit.m_dstX
|
|
|
, blit.m_dstY
|
|
, blit.m_dstY
|
|
|
, 0
|
|
, 0
|
|
|
, &srcLocation
|
|
, &srcLocation
|
|
|
- , depth ? NULL : &box
|
|
|
|
|
|
|
+ , depthStencil ? NULL : &box
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|