From c92860e288ac69dad7717bbbf83484e97b25c9bd Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 13 Dec 2017 16:08:20 -0800 Subject: [PATCH] HLSL: Implement support for RT/Viewport output from VS In DX10/DX11 you can only output RT/Viewport indices from GS; however, DX11.4/DX12 add support for outputting these from VS as well. This is supported by Vulkan if the relevant extension is available, and by MSL and by MSL (which you can cross-compile to via SPIRV-Cross). --- hlsl/hlslParseHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp index 5650d6c2..571f8e59 100755 --- a/hlsl/hlslParseHelper.cpp +++ b/hlsl/hlslParseHelper.cpp @@ -9115,7 +9115,7 @@ bool HlslParseContext::isOutputBuiltIn(const TQualifier& qualifier) const return language == EShLangFragment; case EbvLayer: case EbvViewportIndex: - return language == EShLangGeometry; + return language == EShLangGeometry || language == EShLangVertex; case EbvPrimitiveId: return language == EShLangGeometry; case EbvTessLevelInner: