mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Introduce SPIRV_ENVIRONMENT_VULKAN_1_1.
The SPIR-V backend may emit SPIR-V 1.3 if Vulkan 1.1 is available. Some extensions which provide wave op instructions are available in SPIR-V 1.0, but these are not sufficient to implement all Shader Model 6 wave op intrinsics. SPIR-V 1.3 has all of the required instructions, but does not support reading from a quad at a non-constant (but uniform) lane index, so it may later prove necessary to introduce a Vulkan 1.2 environment.
This commit is contained in:
committed by
Alexandre Julliard
parent
a7870e1793
commit
6975a8d726
Notes:
Alexandre Julliard
2024-04-17 23:29:42 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/776
@@ -923,6 +923,8 @@ enum vkd3d_shader_spirv_environment
|
||||
VKD3D_SHADER_SPIRV_ENVIRONMENT_NONE,
|
||||
VKD3D_SHADER_SPIRV_ENVIRONMENT_OPENGL_4_5,
|
||||
VKD3D_SHADER_SPIRV_ENVIRONMENT_VULKAN_1_0, /* default target */
|
||||
/** \since 1.12 */
|
||||
VKD3D_SHADER_SPIRV_ENVIRONMENT_VULKAN_1_1,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_SPIRV_ENVIRONMENT),
|
||||
};
|
||||
|
Reference in New Issue
Block a user