diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-05 19:33:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 03:33:55 +0000 |
| commit | 7dabfa76ccfb396e9d2019e2b6e01259d1661dc5 (patch) | |
| tree | 8f9a39b9d25d04051d02e63450f66c852d744e62 /source/slang/slang-emit-wgsl.cpp | |
| parent | ecc5a39feecbf73feedf352214406c8752af798a (diff) | |
Implement explciit binding for metal and wgsl. (#5778)
* Respect explicit bindings in wgsl emit.
* Implement explciit binding generation for metal and wgsl.
* Update toc.
* Fix warnings in tests.
* Fix tests.
---------
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-wgsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-wgsl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-wgsl.cpp b/source/slang/slang-emit-wgsl.cpp index 13c14cf34..cba9c1b54 100644 --- a/source/slang/slang-emit-wgsl.cpp +++ b/source/slang/slang-emit-wgsl.cpp @@ -663,7 +663,7 @@ void WGSLSourceEmitter::emitLayoutQualifiersImpl(IRVarLayout* layout) EmitVarChain chain = {}; chain.varLayout = layout; - auto space = getBindingSpaceForKinds(&chain, kind); + auto space = getBindingSpaceForKinds(&chain, LayoutResourceKindFlag::make(kind)); m_writer->emit("@group("); m_writer->emit(space); m_writer->emit(") "); |
