From 5474d91804952d47d3ebe7bdea75e7b885d43e53 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 11 Feb 2024 19:14:00 +0100 Subject: [PATCH] vkd3d-shader/fx: Write DepthStencilView types. --- libs/vkd3d-shader/fx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 93b76728..bc70d522 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -427,6 +427,7 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co static const uint32_t object_type[] = { [HLSL_TYPE_RENDERTARGETVIEW] = 19, + [HLSL_TYPE_DEPTHSTENCILVIEW] = 20, }; static const uint32_t texture_type[] = { @@ -454,6 +455,7 @@ static uint32_t write_fx_4_type(const struct hlsl_type *type, struct fx_write_co switch (type->base_type) { + case HLSL_TYPE_DEPTHSTENCILVIEW: case HLSL_TYPE_RENDERTARGETVIEW: put_u32_unaligned(buffer, object_type[type->base_type]); break;