From 2de6d657dde37a421ff8afb1bd820d522df5821d Mon Sep 17 00:00:00 2001 From: johnkslang Date: Tue, 4 Aug 2020 07:17:39 -0600 Subject: [PATCH] SPV: Standalone; sanity check the client GLSL input semantics option value. --- StandAlone/StandAlone.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index 88368127..1f294b07 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp @@ -696,6 +696,8 @@ void ProcessArguments(std::vector>& workItem setOpenGlSpv(); if (argv[0][2] != 0) ClientInputSemanticsVersion = getAttachedNumber("-G client input semantics"); + if (ClientInputSemanticsVersion != 100) + Error("unknown client version for -G, should be 100"); break; case 'H': Options |= EOptionHumanReadableSpv; @@ -732,6 +734,8 @@ void ProcessArguments(std::vector>& workItem setVulkanSpv(); if (argv[0][2] != 0) ClientInputSemanticsVersion = getAttachedNumber("-V client input semantics"); + if (ClientInputSemanticsVersion != 100) + Error("unknown client version for -V, should be 100"); break; case 'c': Options |= EOptionDumpConfig;