From a5697cf60aed1e6db9b0da2d967fed2dc73390c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Thu, 29 May 2025 08:13:51 +0200 Subject: [PATCH] updated shader compiler arguments --- WickedEngine/wiShaderCompiler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/WickedEngine/wiShaderCompiler.cpp b/WickedEngine/wiShaderCompiler.cpp index c31b7b547..1da38b0f9 100644 --- a/WickedEngine/wiShaderCompiler.cpp +++ b/WickedEngine/wiShaderCompiler.cpp @@ -129,7 +129,7 @@ namespace wi::shadercompiler // https://github.com/microsoft/DirectXShaderCompiler/wiki/Using-dxc.exe-and-dxcompiler.dll#dxcompiler-dll-interface wi::vector args = { - L"-res-may-alias", + //L"-res-may-alias", //L"-flegacy-macro-expansion", //L"-no-legacy-cbuf-layout", //L"-pack-optimized", // this has problem with tessellation shaders: https://github.com/microsoft/DirectXShaderCompiler/issues/3362 @@ -159,8 +159,7 @@ namespace wi::shadercompiler break; case ShaderFormat::SPIRV: args.push_back(L"-spirv"); - args.push_back(L"-fspv-target-env=vulkan1.2"); - //args.push_back(L"-fspv-target-env=vulkan1.3"); // this has some problem with RenderDoc AMD disassembly so it's not enabled for now + args.push_back(L"-fspv-target-env=vulkan1.3"); args.push_back(L"-fvk-use-dx-layout"); args.push_back(L"-fvk-use-dx-position-w"); //args.push_back(L"-fvk-b-shift"); args.push_back(L"0"); args.push_back(L"0");