From 0e220da96b819f3a31635689f78ad20bd9a36d0b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 10 Jul 2017 08:34:52 -0700 Subject: More cross-compilation fixes - Add GLSL mappings for more `Texture*` methods - The annoying one here is `Texture*.Load()` because it doesn't take a sampler, but the GLSL equivalent needs one (while the SPIR-V does *not*). I've hacked this pretty seriously for now. - Try to ensure that we add `uniform` to global declarations that need it in GLSL - When outputting an `in` or `out` variable that might have been created from an `inout` shader parameter, filter the layout qualifiers that we output to only cover the appropriate resource kind. --- source/slang/modifier-defs.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/slang/modifier-defs.h') diff --git a/source/slang/modifier-defs.h b/source/slang/modifier-defs.h index e50288600..083da79f0 100644 --- a/source/slang/modifier-defs.h +++ b/source/slang/modifier-defs.h @@ -6,7 +6,6 @@ #define SIMPLE_MODIFIER(NAME) \ SIMPLE_SYNTAX_CLASS(NAME##Modifier, Modifier) -SIMPLE_MODIFIER(Uniform); SIMPLE_MODIFIER(In); SIMPLE_MODIFIER(Out); SIMPLE_MODIFIER(Const); -- cgit v1.2.3