mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/fx: Write DepthStencilView types.
This commit is contained in:
parent
371be3b60a
commit
5474d91804
Notes:
Alexandre Julliard
2024-02-22 23:03:49 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/660
@ -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[] =
|
static const uint32_t object_type[] =
|
||||||
{
|
{
|
||||||
[HLSL_TYPE_RENDERTARGETVIEW] = 19,
|
[HLSL_TYPE_RENDERTARGETVIEW] = 19,
|
||||||
|
[HLSL_TYPE_DEPTHSTENCILVIEW] = 20,
|
||||||
};
|
};
|
||||||
static const uint32_t texture_type[] =
|
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)
|
switch (type->base_type)
|
||||||
{
|
{
|
||||||
|
case HLSL_TYPE_DEPTHSTENCILVIEW:
|
||||||
case HLSL_TYPE_RENDERTARGETVIEW:
|
case HLSL_TYPE_RENDERTARGETVIEW:
|
||||||
put_u32_unaligned(buffer, object_type[type->base_type]);
|
put_u32_unaligned(buffer, object_type[type->base_type]);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user