mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/tpf: Convert some of the semantic names to system values names when in compatibility mode.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
a4ed06bc5b
commit
e242b46922
Notes:
Alexandre Julliard
2023-10-19 23:22:28 +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/381
@@ -154,6 +154,25 @@ enum vkd3d_shader_compile_option_pack_matrix_order
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_COMPILE_OPTION_PACK_MATRIX_ORDER),
|
||||
};
|
||||
|
||||
/** Individual options to enable various backward compatibility features. \since 1.10 */
|
||||
enum vkd3d_shader_compile_option_backward_compatibility
|
||||
{
|
||||
/**
|
||||
* Causes compiler to convert SM1-3 semantics to corresponding System Value semantics,
|
||||
* when compiling HLSL sources for SM4+ targets.
|
||||
*
|
||||
* This option does the following conversions:
|
||||
*
|
||||
* - POSITION to SV_Position for vertex shader outputs, pixel shader inputs,
|
||||
* and geometry shader inputs and outputs;
|
||||
* - COLORN to SV_TargetN for pixel shader outputs;
|
||||
* - DEPTH to SV_Depth for pixel shader outputs.
|
||||
*/
|
||||
VKD3D_SHADER_COMPILE_OPTION_BACKCOMPAT_MAP_SEMANTIC_NAMES = 0x00000001,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_COMPILE_OPTION_BACKWARD_COMPATIBILITY),
|
||||
};
|
||||
|
||||
enum vkd3d_shader_compile_option_name
|
||||
{
|
||||
/**
|
||||
@@ -193,6 +212,14 @@ enum vkd3d_shader_compile_option_name
|
||||
* \since 1.9
|
||||
*/
|
||||
VKD3D_SHADER_COMPILE_OPTION_PACK_MATRIX_ORDER = 0x00000007,
|
||||
/**
|
||||
* This option is used to enable various backward compatibility features.
|
||||
*
|
||||
* \a value is a mask of values from enum vkd3d_shader_compile_option_backward_compatibility.
|
||||
*
|
||||
* \since 1.10
|
||||
*/
|
||||
VKD3D_SHADER_COMPILE_OPTION_BACKWARD_COMPATIBILITY = 0x00000008,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_COMPILE_OPTION_NAME),
|
||||
};
|
||||
|
Reference in New Issue
Block a user