summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-any-value-marshalling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
-rw-r--r--source/slang/slang-ir-any-value-marshalling.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp
index 200f8bc55..13059a84a 100644
--- a/source/slang/slang-ir-any-value-marshalling.cpp
+++ b/source/slang/slang-ir-any-value-marshalling.cpp
@@ -4,6 +4,7 @@
#include "slang-ir-generics-lowering-context.h"
#include "slang-ir.h"
#include "slang-ir-insts.h"
+#include "slang-legalize-types.h"
namespace Slang
{
@@ -223,7 +224,7 @@ namespace Slang
break;
}
default:
- if (as<IRTextureTypeBase>(dataType) || as<IRSamplerStateTypeBase>(dataType))
+ if (isResourceType(dataType))
{
context->marshalResourceHandle(builder, dataType, concreteTypedVar);
return;
@@ -855,7 +856,7 @@ namespace Slang
return alignUp(offset, 4) + alignUp((SlangInt)anyValueSize, 4);
}
default:
- if (as<IRTextureTypeBase>(type) || as<IRSamplerStateTypeBase>(type))
+ if (isResourceType(type))
{
return alignUp(offset, 4) + 8;
}