mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Do not use PlaneSlice as layer index.
This commit is contained in:
parent
f3862db04d
commit
660ee7b090
@ -1306,9 +1306,11 @@ void d3d12_rtv_desc_create_rtv(struct d3d12_rtv_desc *rtv_desc, struct d3d12_dev
|
||||
return;
|
||||
}
|
||||
|
||||
if (desc && desc->u.Texture2D.PlaneSlice)
|
||||
FIXME("Ignoring plane slice %u.\n", desc->u.Texture2D.PlaneSlice);
|
||||
|
||||
if (vkd3d_create_texture_view(device, resource, format, VK_IMAGE_VIEW_TYPE_2D,
|
||||
desc ? desc->u.Texture2D.MipSlice : 0, 1, desc ? desc->u.Texture2D.PlaneSlice : 0, 1,
|
||||
&rtv_desc->vk_view) < 0)
|
||||
desc ? desc->u.Texture2D.MipSlice : 0, 1, 0, 1, &rtv_desc->vk_view) < 0)
|
||||
return;
|
||||
|
||||
rtv_desc->format = format->vk_format;
|
||||
|
Loading…
Reference in New Issue
Block a user