vkd3d-shader/spirv: Introduce HALF and UINT16 types for minimum precision.

Minimum precision types must always be implemented as 32-bit to match how
reduced precision works in SPIR-V.
This commit is contained in:
Conor McCarthy
2023-12-13 15:40:48 +10:00
committed by Alexandre Julliard
parent 58123c2e10
commit 066ea75945
Notes: Alexandre Julliard 2024-03-11 23:07:09 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Conor McCarthy (@cmccarthy)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/519
3 changed files with 87 additions and 7 deletions

View File

@@ -649,6 +649,8 @@ static void shader_dump_data_type(struct vkd3d_d3d_asm_compiler *compiler, enum
[VKD3D_DATA_UINT8 ] = "uint8",
[VKD3D_DATA_UINT64 ] = "uint64",
[VKD3D_DATA_BOOL ] = "bool",
[VKD3D_DATA_UINT16 ] = "uint16",
[VKD3D_DATA_HALF ] = "half",
};
const char *name;