diff options
| author | Yong He <yonghe@outlook.com> | 2020-09-10 15:10:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 15:10:11 -0700 |
| commit | e5b796db188416dfc414dab27b92c86b0b53de2b (patch) | |
| tree | eab72001c550d80927805bd5462fb529c20170ae /source/slang/slang-check-shader.cpp | |
| parent | d6a2d2905125715629fe8972a374136189d0c9ef (diff) | |
Allow existential types in `StructuredBuffer` element type. (#1536)
* Allow existential types in `StructuredBuffer` element type.
* Handle StructuredBuffer.Load/.Consume methods
* Clean up unnecessary changes
* Code cleanup
* Update test comment
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
| -rw-r--r-- | source/slang/slang-check-shader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp index fe35f8a19..7793dfcbc 100644 --- a/source/slang/slang-check-shader.cpp +++ b/source/slang/slang-check-shader.cpp @@ -74,6 +74,12 @@ namespace Slang loc); return; } + else if (auto structuredBufferType = as<HLSLStructuredBufferTypeBase>(type)) + { + _collectExistentialSpecializationParamsRec( + astBuilder, ioSpecializationParams, structuredBufferType->getElementType(), loc); + return; + } if( auto declRefType = as<DeclRefType>(type) ) { |
