summaryrefslogtreecommitdiffstats
path: root/source/slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-22 15:14:48 -0800
committerGitHub <noreply@github.com>2024-11-22 15:14:48 -0800
commit43728fbda5b9af19eded18fe82ca67b66cc6d0f7 (patch)
tree13354573300776f7f293b886109c85be760933fc /source/slang
parent756cb32e92f42a622d10b1cca52c7b7e926725d2 (diff)
Don't treat StrcturedBuffer<IFoo> as a specializable param. (#5645)
* Don't treat StrcturedBuffer<IFoo> as a specializable param. * Fix RHI.
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang-check-shader.cpp9
-rw-r--r--source/slang/slang-mangle.cpp1
2 files changed, 1 insertions, 9 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index 52a70034a..50382f9c1 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -79,15 +79,6 @@ static void _collectExistentialSpecializationParamsRec(
loc);
return;
}
- else if (auto structuredBufferType = as<HLSLStructuredBufferTypeBase>(type))
- {
- _collectExistentialSpecializationParamsRec(
- astBuilder,
- ioSpecializationParams,
- structuredBufferType->getElementType(),
- loc);
- return;
- }
if (auto declRefType = as<DeclRefType>(type))
{
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 4257f5dc2..7d4587480 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -817,6 +817,7 @@ String getMangledTypeName(ASTBuilder* astBuilder, Type* type)
{
SLANG_AST_BUILDER_RAII(astBuilder);
ManglingContext context(astBuilder);
+ emitRaw(&context, "_ST");
emitType(&context, type);
return context.sb.produceString();
}