From 5552be552b9112ad655f71a245527ee5b9819df8 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 4 Mar 2024 15:22:47 +0100 Subject: [PATCH] vkd3d-compiler: Compile SPIR-V shaders with the int64 and float64 features. --- programs/vkd3d-compiler/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/vkd3d-compiler/main.c b/programs/vkd3d-compiler/main.c index fdb1cade..4b0f37fe 100644 --- a/programs/vkd3d-compiler/main.c +++ b/programs/vkd3d-compiler/main.c @@ -835,6 +835,10 @@ int main(int argc, char **argv) options.formatting |= VKD3D_SHADER_COMPILE_OPTION_FORMATTING_COLOUR; add_compile_option(&options, VKD3D_SHADER_COMPILE_OPTION_FORMATTING, options.formatting); add_compile_option(&options, VKD3D_SHADER_COMPILE_OPTION_API_VERSION, VKD3D_SHADER_API_VERSION_1_10); + if (options.target_type == VKD3D_SHADER_TARGET_SPIRV_BINARY + || options.target_type == VKD3D_SHADER_TARGET_SPIRV_TEXT) + add_compile_option(&options, VKD3D_SHADER_COMPILE_OPTION_FEATURE, + VKD3D_SHADER_COMPILE_OPTION_FEATURE_INT64 | VKD3D_SHADER_COMPILE_OPTION_FEATURE_FLOAT64); info.type = VKD3D_SHADER_STRUCTURE_TYPE_COMPILE_INFO; info.next = &hlsl_source_info;