mojoshader_internal.h
changeset 1225 50b8dd7e0b1a
parent 1224 21cd84f1aa0a
child 1234 608cef8fa24d
--- a/mojoshader_internal.h	Tue Dec 31 12:22:44 2019 -0500
+++ b/mojoshader_internal.h	Tue Dec 31 12:58:06 2019 -0500
@@ -68,6 +68,10 @@
 #define SUPPORT_PROFILE_SPIRV 1
 #endif
 
+#ifndef SUPPORT_PROFILE_GLSPIRV
+#define SUPPORT_PROFILE_GLSPIRV 1
+#endif
+
 #if SUPPORT_PROFILE_ARB1_NV && !SUPPORT_PROFILE_ARB1
 #error nv profiles require arb1 profile. Fix your build.
 #endif
@@ -80,6 +84,10 @@
 #error glsles profile requires glsl profile. Fix your build.
 #endif
 
+#if SUPPORT_PROFILE_GLSPIRV && !SUPPORT_PROFILE_SPIRV
+#error glspirv profile requires spirv profile. Fix your build.
+#endif
+
 // Microsoft's preprocessor has some quirks. In some ways, it doesn't work
 //  like you'd expect a C preprocessor to function.
 #ifndef MATCH_MICROSOFT_PREPROCESSOR