summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-12-06 10:28:23 +0800
committerGitHub <noreply@github.com>2023-12-05 18:28:23 -0800
commitfa6d8717d02912697c09f2d7de802723ac6d6e47 (patch)
tree65c3662b6cd47ffd56cc0b5727df31daf46f8c0e /source
parent1050e0eb96d6c8e7a6cfb253458155e1014625c3 (diff)
squash warnings (#3378)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir.h b/source/slang/slang-ir.h
index 6b055b19e..f1a4bdf3f 100644
--- a/source/slang/slang-ir.h
+++ b/source/slang/slang-ir.h
@@ -1399,7 +1399,7 @@ struct IRResourceTypeBase : IRType
bool isShadow() { return getIntVal(getIsShadowInst()) != 0; }
bool isCombined() { return getIntVal(getIsCombinedInst()) != 0; }
- SlangResourceShape getShape() { return (SlangResourceShape)((uint32_t)GetBaseShape() | (isArray() ? SLANG_TEXTURE_ARRAY_FLAG : 0)); }
+ SlangResourceShape getShape() { return (SlangResourceShape)((uint32_t)GetBaseShape() | (isArray() ? SLANG_TEXTURE_ARRAY_FLAG : SLANG_RESOURCE_NONE)); }
SlangResourceAccess getAccess()
{
auto constVal = as<IRIntLit>(getOperand(kStdlibTextureAccessParameterIndex));