diff options
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index e40350df8..295551639 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -1410,8 +1410,13 @@ struct EmitVisitor return true; } - // Is the expression referencing a constant buffer? - if (auto cbufferType = e->type->As<ConstantBufferType>()) + // Is the expression referencing a uniform parameter group, + // but *not* a `ParameterBlock<T>`? + if (auto parameterBlockType = e->type->As<ParameterBlockType>()) + { + return false; + } + if (auto uniformParameterGroupType = e->type->As<UniformParameterGroupType>()) { return true; } |
