mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Use correct method to clear multi-plane images
This commit is contained in:
parent
ee30acf120
commit
01236fbd84
@ -186,7 +186,7 @@ namespace dxvk {
|
|||||||
subresources.baseArrayLayer = 0;
|
subresources.baseArrayLayer = 0;
|
||||||
subresources.layerCount = image->info().numLayers;
|
subresources.layerCount = image->info().numLayers;
|
||||||
|
|
||||||
if (formatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) {
|
if (formatInfo->flags.any(DxvkFormatFlag::BlockCompressed, DxvkFormatFlag::MultiPlane)) {
|
||||||
m_context->clearCompressedColorImage(image, subresources);
|
m_context->clearCompressedColorImage(image, subresources);
|
||||||
} else {
|
} else {
|
||||||
if (subresources.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
|
if (subresources.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user