Skip to content

Commit 2de6d65

Browse files
committed
SPV: Standalone; sanity check the client GLSL input semantics option value.
1 parent a1a497f commit 2de6d65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

StandAlone/StandAlone.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
696696
setOpenGlSpv();
697697
if (argv[0][2] != 0)
698698
ClientInputSemanticsVersion = getAttachedNumber("-G<num> client input semantics");
699+
if (ClientInputSemanticsVersion != 100)
700+
Error("unknown client version for -G, should be 100");
699701
break;
700702
case 'H':
701703
Options |= EOptionHumanReadableSpv;
@@ -732,6 +734,8 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
732734
setVulkanSpv();
733735
if (argv[0][2] != 0)
734736
ClientInputSemanticsVersion = getAttachedNumber("-V<num> client input semantics");
737+
if (ClientInputSemanticsVersion != 100)
738+
Error("unknown client version for -V, should be 100");
735739
break;
736740
case 'c':
737741
Options |= EOptionDumpConfig;

0 commit comments

Comments
 (0)