diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-21 14:37:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 14:37:21 -0700 |
| commit | 82508d87e1199a2e299ac21b8b6ac8d192917d1d (patch) | |
| tree | d9ec65a8b513dfb8d53802494033e0a91fbeaa27 /source/slang/slang-syntax.cpp | |
| parent | b40b711f54748145ed1340f2a3aa626dcb42b699 (diff) | |
Add sampleCount parameter for read-only textures. (#3011)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index 249969729..227e468d6 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -575,7 +575,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt SLANG_ASSERT(subst && subst->getArgs().getCount() >= 1); auto textureTag = TextureFlavor(magicMod->tag); Val* sampleCount = nullptr; - if (textureTag.isMultisample() && textureTag.getAccess() == SLANG_RESOURCE_ACCESS_READ_WRITE) + if (textureTag.isMultisample()) { if (subst->getArgs().getCount() >= 2) sampleCount = ExtractGenericArgInteger(subst->getArgs().getLast()); |
