summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/slang-deprecated.h2
-rw-r--r--include/slang.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/slang-deprecated.h b/include/slang-deprecated.h
index df6e41488..2ae91c6d8 100644
--- a/include/slang-deprecated.h
+++ b/include/slang-deprecated.h
@@ -681,6 +681,8 @@ extern "C"
SLANG_API size_t spReflectionVariableLayout_GetSpace(
SlangReflectionVariableLayout* var,
SlangParameterCategory category);
+ SLANG_API SlangImageFormat
+ spReflectionVariableLayout_GetImageFormat(SlangReflectionVariableLayout* var);
SLANG_API char const* spReflectionVariableLayout_GetSemanticName(
SlangReflectionVariableLayout* var);
diff --git a/include/slang.h b/include/slang.h
index aab6fc47c..0507d8099 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -2921,6 +2921,11 @@ struct VariableLayoutReflection
(SlangParameterCategory)category);
}
+ SlangImageFormat getImageFormat()
+ {
+ return spReflectionVariableLayout_GetImageFormat((SlangReflectionVariableLayout*)this);
+ }
+
char const* getSemanticName()
{
return spReflectionVariableLayout_GetSemanticName((SlangReflectionVariableLayout*)this);