summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-10 12:39:55 -0800
committerGitHub <noreply@github.com>2022-02-10 12:39:55 -0800
commit120f97fb8d4e22b057cea43b503611f8292ade37 (patch)
treee1f7bae615b499425702f7e82bc556a312c7515c /slang.h
parent0c04885da9edc3df7a1ef5cb520be1bd29eb13e4 (diff)
gfx: support shader record overwrite and fix QueryPool. (#2123)
* Various fixes to gfx. * Fix. * Fixes. * Fix. * gfx: support root parameter via user-defined attribute. * Fix. * Fix. * Skip d3d12 tests on win x86. * Fixes. * gfx: support shader record overwrite. * Fix QueyPool implementation. * Rename to `getBindingRangeLeafVariable` Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/slang.h b/slang.h
index b3169e4b0..9872180fb 100644
--- a/slang.h
+++ b/slang.h
@@ -2043,7 +2043,7 @@ extern "C"
SLANG_API SlangBindingType spReflectionTypeLayout_getBindingRangeType(SlangReflectionTypeLayout* typeLayout, SlangInt index);
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeBindingCount(SlangReflectionTypeLayout* typeLayout, SlangInt index);
SLANG_API SlangReflectionTypeLayout* spReflectionTypeLayout_getBindingRangeLeafTypeLayout(SlangReflectionTypeLayout* typeLayout, SlangInt index);
- SLANG_API SlangReflectionVariable* spReflectionTypeLayout_getBindingRangeVariable(SlangReflectionTypeLayout* typeLayout, SlangInt index);
+ SLANG_API SlangReflectionVariable* spReflectionTypeLayout_getBindingRangeLeafVariable(SlangReflectionTypeLayout* typeLayout, SlangInt index);
SLANG_API SlangInt spReflectionTypeLayout_getFieldBindingRangeOffset(SlangReflectionTypeLayout* typeLayout, SlangInt fieldIndex);
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeDescriptorSetIndex(SlangReflectionTypeLayout* typeLayout, SlangInt index);
@@ -2660,9 +2660,9 @@ namespace slang
index);
}
- VariableReflection* getBindingRangeVariable(SlangInt index)
+ VariableReflection* getBindingRangeLeafVariable(SlangInt index)
{
- return (VariableReflection*)spReflectionTypeLayout_getBindingRangeVariable(
+ return (VariableReflection*)spReflectionTypeLayout_getBindingRangeLeafVariable(
(SlangReflectionTypeLayout*)this, index);
}