Make the "switch-label not followed by statement" warning an error, depending on version.

This commit is contained in:
John Kessenich
2015-06-26 12:24:28 -06:00
parent add1a4d88d
commit 0e7674afa0
4 changed files with 16 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
spv.switch.frag
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
WARNING: 0:121: 'switch' : last case/default label not followed by statements
WARNING: 0:134: 'switch' : last case/default label not followed by statements
WARNING: 0:139: 'switch' : last case/default label not followed by statements
@@ -11,7 +12,7 @@ Linked fragment stage:
// Generated by (magic number): 51a00bb
// Id's are bound by 261
Source ESSL 300
Source ESSL 310
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4