summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
-rw-r--r--source/slang/slang-reflection-api.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index 00ecfdbc1..17ceb6842 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -1231,7 +1231,11 @@ namespace Slang
SlangBindingType _calcResourceBindingType(
Type* type)
{
- if( auto resourceType = as<ResourceType>(type) )
+ if(auto combinedTextureSamplerType = as<TextureSamplerType>(type))
+ {
+ return SLANG_BINDING_TYPE_COMBINED_TEXTURE_SAMPLER;
+ }
+ else if( auto resourceType = as<ResourceType>(type) )
{
auto shape = resourceType->getBaseShape();
@@ -1246,7 +1250,6 @@ namespace Slang
case SLANG_TEXTURE_BUFFER:
return SLANG_BINDING_TYPE_TYPED_BUFFER | mutableFlag;
}
-
}
else if( auto structuredBufferType = as<HLSLStructuredBufferTypeBase>(type) )
{