summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parameter-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-parameter-binding.cpp')
-rw-r--r--source/slang/slang-parameter-binding.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-parameter-binding.cpp b/source/slang/slang-parameter-binding.cpp
index 7241fdd6e..4ddafa425 100644
--- a/source/slang/slang-parameter-binding.cpp
+++ b/source/slang/slang-parameter-binding.cpp
@@ -1135,9 +1135,10 @@ static void addExplicitParameterBindings_GLSL(
// We can't infer TextureSampler from HLSL (it's not an HLSL concept)
// So use default layout
auto varType = varDecl.getDecl()->getType();
- if (as<TextureSamplerType>(varType))
+ if (auto textureType = as<TextureType>(varType))
{
- return;
+ if (textureType->isCombined())
+ return;
}
// Can we map to a Vulkan kind in principal?