diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-02-26 12:14:24 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-26 12:14:24 -0800 |
| commit | 28887ae858450e8a5efc8d43851fd8e5b5356e32 (patch) | |
| tree | 4b66060a1e370f27b3d5ad2bc20ed3b996e5f246 /source/slang | |
| parent | b942849bc143ce8ee77c6d7e3342964755660f6c (diff) | |
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;`.
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/syntax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
