From 8151bc6df37372eb91011edede9ffbb258ebeab6 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 22 May 2020 16:19:39 -0700 Subject: Unified VULKAN shader define in VK and GL backends --- Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h | 2 +- Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/HLSL2GLSLConverterLib') diff --git a/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h b/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h index ad3bc2ab..b6f068c2 100644 --- a/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h +++ b/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h @@ -1040,7 +1040,7 @@ vec4 _frexp(vec4 f4, out vec4 fexp4) // Helper functions -#ifdef TARGET_API_VULKAN +#ifdef VULKAN #define NDC_MIN_Z 0.0 // Minimal z in the normalized device space diff --git a/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h b/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h index 042d4958..42d41d90 100644 --- a/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h +++ b/Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h @@ -1040,7 +1040,7 @@ "\n" "// Helper functions\n" "\n" -"#ifdef TARGET_API_VULKAN\n" +"#ifdef VULKAN\n" "\n" "#define NDC_MIN_Z 0.0 // Minimal z in the normalized device space\n" "\n" -- cgit v1.2.3