vkd3d-shader/hlsl: Handle HLSL_TYPE_DOUBLE in sm4_base_type().

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2022-04-06 10:53:30 +02:00 committed by Alexandre Julliard
parent 233157649c
commit 8fa196cf51

View File

@ -290,6 +290,8 @@ static D3D_SHADER_VARIABLE_TYPE sm4_base_type(const struct hlsl_type *type)
{ {
case HLSL_TYPE_BOOL: case HLSL_TYPE_BOOL:
return D3D_SVT_BOOL; return D3D_SVT_BOOL;
case HLSL_TYPE_DOUBLE:
return D3D_SVT_DOUBLE;
case HLSL_TYPE_FLOAT: case HLSL_TYPE_FLOAT:
case HLSL_TYPE_HALF: case HLSL_TYPE_HALF:
return D3D_SVT_FLOAT; return D3D_SVT_FLOAT;