From 28887ae858450e8a5efc8d43851fd8e5b5356e32 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 26 Feb 2018 12:14:24 -0800 Subject: Fix GS stream types (#428) The code in `DeclRefType::Create` was treating all of the point/line/triangle output stream types as `HLSLPointStreamType`, which meant we always output GLSL geometry shaders with `layout(points) out;`. --- source/slang/syntax.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/syntax.cpp') diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index c415568bb..88c23f314 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -827,8 +827,8 @@ void Type::accept(IValVisitor* visitor, void* extra) CASE(HLSLConsumeStructuredBufferType, HLSLConsumeStructuredBufferType) CASE(HLSLPointStreamType, HLSLPointStreamType) - CASE(HLSLLineStreamType, HLSLPointStreamType) - CASE(HLSLTriangleStreamType, HLSLPointStreamType) + CASE(HLSLLineStreamType, HLSLLineStreamType) + CASE(HLSLTriangleStreamType, HLSLTriangleStreamType) #undef CASE -- cgit v1.2.3