summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-03 18:09:35 -0800
committerGitHub <noreply@github.com>2018-01-03 18:09:35 -0800
commite90dfcfd6a0a6d92688012b1216c46c24965cfc0 (patch)
tree89b1e0e3f0e95ea0bf586bd67fa36066f0021ce7 /slang.h
parent5da16a6360e40b9fd4d2275a5ef5b1af740c4abb (diff)
parent550405d2de2ca617046e73fe5ec7e5e1765a5c97 (diff)
Merge pull request #349 from csyonghe/master
Add API for querying TypeLayout from a Type
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/slang.h b/slang.h
index f7d49354a..3d7484075 100644
--- a/slang.h
+++ b/slang.h
@@ -633,6 +633,12 @@ extern "C"
SLANG_STAGE_PIXEL = SLANG_STAGE_FRAGMENT,
};
+ typedef SlangUInt32 SlangLayoutRules;
+ enum
+ {
+ SLANG_LAYOUT_RULES_DEFAULT,
+ };
+
// Type Reflection
SLANG_API SlangTypeKind spReflectionType_GetKind(SlangReflectionType* type);
@@ -739,6 +745,9 @@ extern "C"
SLANG_API SlangReflectionTypeParameter* spReflection_GetTypeParameterByIndex(SlangReflection* reflection, unsigned int index);
SLANG_API SlangReflectionTypeParameter* spReflection_FindTypeParameter(SlangReflection* reflection, char const* name);
+ SLANG_API SlangReflectionType* spReflection_FindTypeByName(SlangReflection* reflection, char const* name);
+ SLANG_API SlangReflectionTypeLayout* spReflection_GetTypeLayout(SlangReflection* reflection, SlangReflectionType* reflectionType, SlangLayoutRules rules);
+
SLANG_API SlangUInt spReflection_getEntryPointCount(SlangReflection* reflection);
SLANG_API SlangReflectionEntryPoint* spReflection_getEntryPointByIndex(SlangReflection* reflection, SlangUInt index);