vkd3d-shader/d3dbc: Add an option to treat doubles as floats.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55448
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2024-08-29 16:12:31 +02:00
committed by Henri Verbeet
parent d7def84253
commit 799e6105a4
Notes: Henri Verbeet 2024-09-23 15:55:06 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1025
6 changed files with 49 additions and 4 deletions

View File

@ -190,6 +190,17 @@ enum vkd3d_shader_compile_option_backward_compatibility
* - DEPTH to SV_Depth for pixel shader outputs.
*/
VKD3D_SHADER_COMPILE_OPTION_BACKCOMPAT_MAP_SEMANTIC_NAMES = 0x00000001,
/**
* Causes 'double' to behave as an alias for 'float'. This option only
* applies to HLSL sources with shader model 1-3 target profiles. Without
* this option using the 'double' type produces compilation errors in
* these target profiles.
*
* This option is disabled by default.
*
* \since 1.14
*/
VKD3D_SHADER_COMPILE_OPTION_DOUBLE_AS_FLOAT_ALIAS = 0x00000002,
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_COMPILE_OPTION_BACKWARD_COMPATIBILITY),
};