diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-reflection.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp index 6d53e1a89..1daec501d 100644 --- a/source/slang/slang-reflection.cpp +++ b/source/slang/slang-reflection.cpp @@ -831,27 +831,11 @@ static SlangParameterCategory getParameterCategory( return SLANG_PARAMETER_CATEGORY_MIXED; } -static TypeLayout* maybeGetContainerLayout(TypeLayout* typeLayout) -{ - if (auto parameterGroupTypeLayout = as<ParameterGroupTypeLayout>(typeLayout)) - { - auto containerTypeLayout = parameterGroupTypeLayout->containerVarLayout->typeLayout; - if (containerTypeLayout->resourceInfos.getCount() != 0) - { - return containerTypeLayout; - } - } - - return typeLayout; -} - SLANG_API SlangParameterCategory spReflectionTypeLayout_GetParameterCategory(SlangReflectionTypeLayout* inTypeLayout) { auto typeLayout = convert(inTypeLayout); if(!typeLayout) return SLANG_PARAMETER_CATEGORY_NONE; - typeLayout = maybeGetContainerLayout(typeLayout); - return getParameterCategory(typeLayout); } @@ -860,8 +844,6 @@ SLANG_API unsigned spReflectionTypeLayout_GetCategoryCount(SlangReflectionTypeLa auto typeLayout = convert(inTypeLayout); if(!typeLayout) return 0; - typeLayout = maybeGetContainerLayout(typeLayout); - return (unsigned) typeLayout->resourceInfos.getCount(); } @@ -870,8 +852,6 @@ SLANG_API SlangParameterCategory spReflectionTypeLayout_GetCategoryByIndex(Slang auto typeLayout = convert(inTypeLayout); if(!typeLayout) return SLANG_PARAMETER_CATEGORY_NONE; - typeLayout = maybeGetContainerLayout(typeLayout); - return typeLayout->resourceInfos[index].kind; } |
