summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection-api.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-02-17 15:09:09 -0800
committerGitHub <noreply@github.com>2021-02-17 15:09:09 -0800
commite59aee131b6d51236613bc374cfa2d5f3b54efe1 (patch)
tree1225fb886e6b280ca50d737c1769bb8465480692 /source/slang/slang-reflection-api.cpp
parent39975b207e5db7de8feaaebfda2ae122c1850b26 (diff)
Add `SampleGrad` overload for lod clamp. (#1711)
* Add `SampleGrad` overload for lod clamp. * Fix gfx to run the test on vulkan. * Whitespace change to trigger CI build * remove presentFrame call in render-test Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
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;