From bd0cd504f6e550b4a810a94a7c9d96595836c066 Mon Sep 17 00:00:00 2001 From: 00bins <00bins@users.noreply.github.com> Date: Wed, 22 Nov 2023 03:33:33 +0000 Subject: [PATCH] Fix incorrect psslShaderPreamble in compute shader (#3206) --- tools/shaderc/shaderc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 62fdeb9293..fef250c39f 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -1547,7 +1547,7 @@ namespace bgfx } else { - if (profile->lang != ShadingLang::PSSL) + if (profile->lang == ShadingLang::PSSL) { preprocessor.writef(getPsslPreamble() ); }