vkd3d: Do not hardcode aspect mask in d3d12_command_list_ClearUnorderedAccessViewUint().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia
2018-09-14 14:19:53 +02:00
committed by Alexandre Julliard
parent 865430d2b1
commit be4a775c07
3 changed files with 3 additions and 1 deletions

View File

@@ -3921,7 +3921,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_ClearUnorderedAccessViewUint(ID
color.uint32[2] = values[2];
color.uint32[3] = values[3];
range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
range.aspectMask = cpu_descriptor->uav.texture.vk_aspect_mask;
range.baseMipLevel = cpu_descriptor->uav.texture.miplevel_idx;
range.levelCount = 1;
range.baseArrayLayer = cpu_descriptor->uav.texture.layer_idx;