mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Initialize image aspect for NULL SRVs.
This commit is contained in:
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
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user