mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/d3dbc: Disallow 1D sampler types when writing sampler declaration.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
177ea3bcbd
commit
ee6c66eb1b
Notes:
Alexandre Julliard
2023-09-13 23:18:39 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/339
@ -1982,10 +1982,6 @@ static void write_sm1_sampler_dcl(struct hlsl_ctx *ctx, struct vkd3d_bytecode_bu
|
||||
|
||||
switch (sampler_dim)
|
||||
{
|
||||
case HLSL_SAMPLER_DIM_1D:
|
||||
res_type = VKD3D_SM1_RESOURCE_TEXTURE_1D;
|
||||
break;
|
||||
|
||||
case HLSL_SAMPLER_DIM_2D:
|
||||
res_type = VKD3D_SM1_RESOURCE_TEXTURE_2D;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user