summaryrefslogtreecommitdiff
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-10 14:58:41 -0700
committerGitHub <noreply@github.com>2023-08-10 14:58:41 -0700
commit38b0af3537f5d8412f0d69e39e38c5603ff62c15 (patch)
tree5892b0b2427f0de0057259949e03105ec766143a /source/slang/slang-type-layout.cpp
parent60ebadab1ec269c7017148a028307a9b5f32b1d4 (diff)
Add support for ConstBufferPointer on Vulkan. (#3089)
* Add support for `ConstBufferPointer` on Vulkan. * Add spv compilation test. * Fix. * Fix code review issues. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp
index f5e14366d..d075b12e2 100644
--- a/source/slang/slang-type-layout.cpp
+++ b/source/slang/slang-type-layout.cpp
@@ -3928,7 +3928,7 @@ static TypeLayoutResult _createTypeLayout(
{
return createArrayLikeTypeLayout(context, arrayType, arrayType->getElementType(), arrayType->getElementCount());
}
- else if (auto ptrType = as<PtrType>(type))
+ else if (auto ptrType = as<PtrTypeBase>(type))
{
RefPtr<PointerTypeLayout> ptrLayout = new PointerTypeLayout();