mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/tpf: Support some of the UAV types when writing RDEF records.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
3bafd036bb
commit
63631a8fd4
Notes:
Alexandre Julliard
2023-07-17 23:25:39 +02: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/274
@ -2830,6 +2830,22 @@ static D3D_SHADER_VARIABLE_TYPE sm4_base_type(const struct hlsl_type *type)
|
||||
return D3D_SVT_VERTEXSHADER;
|
||||
case HLSL_TYPE_VOID:
|
||||
return D3D_SVT_VOID;
|
||||
case HLSL_TYPE_UAV:
|
||||
switch (type->sampler_dim)
|
||||
{
|
||||
case HLSL_SAMPLER_DIM_1D:
|
||||
return D3D_SVT_RWTEXTURE1D;
|
||||
case HLSL_SAMPLER_DIM_2D:
|
||||
return D3D_SVT_RWTEXTURE2D;
|
||||
case HLSL_SAMPLER_DIM_3D:
|
||||
return D3D_SVT_RWTEXTURE3D;
|
||||
case HLSL_SAMPLER_DIM_1DARRAY:
|
||||
return D3D_SVT_RWTEXTURE1DARRAY;
|
||||
case HLSL_SAMPLER_DIM_2DARRAY:
|
||||
return D3D_SVT_RWTEXTURE2DARRAY;
|
||||
default:
|
||||
vkd3d_unreachable();
|
||||
}
|
||||
default:
|
||||
vkd3d_unreachable();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user