vkd3d: Initialize image aspect for NULL SRVs.

This commit is contained in:
Matteo Bruni 2023-02-01 12:58:18 +01:00 committed by Alexandre Julliard
parent 552926cfca
commit 2e074ebce7
Notes: Alexandre Julliard 2023-02-07 22:14:36 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/78

View File

@ -2897,6 +2897,7 @@ static void vkd3d_create_null_srv(struct d3d12_desc *descriptor,
vkd3d_desc.miplevel_count = 1; vkd3d_desc.miplevel_count = 1;
vkd3d_desc.layer_idx = 0; vkd3d_desc.layer_idx = 0;
vkd3d_desc.layer_count = 1; vkd3d_desc.layer_count = 1;
vkd3d_desc.vk_image_aspect = VK_IMAGE_ASPECT_COLOR_BIT;
vkd3d_desc.components.r = VK_COMPONENT_SWIZZLE_ZERO; vkd3d_desc.components.r = VK_COMPONENT_SWIZZLE_ZERO;
vkd3d_desc.components.g = VK_COMPONENT_SWIZZLE_ZERO; vkd3d_desc.components.g = VK_COMPONENT_SWIZZLE_ZERO;
vkd3d_desc.components.b = VK_COMPONENT_SWIZZLE_ZERO; vkd3d_desc.components.b = VK_COMPONENT_SWIZZLE_ZERO;