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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index 1cfb8fecc..cd141a622 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -1148,6 +1148,10 @@ namespace Slang
{
return SLANG_BINDING_TYPE_CONSTANT_BUFFER;
}
+ else if( as<SamplerStateType>(type) )
+ {
+ return SLANG_BINDING_TYPE_SAMPLER;
+ }
else
{
return SLANG_BINDING_TYPE_UNKNOWN;