summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-12 11:30:43 -0700
committerGitHub <noreply@github.com>2017-07-12 11:30:43 -0700
commit6101e483ae8ea9e10db2b5a9423af3cc7fafb710 (patch)
treea3d8f4f8873946f58111ae5e7f5034b071c1e824 /slang.h
parent88f451cfafbf3a30033e750873c79f761b2bd1a5 (diff)
parent74963469a169b49d61196e3a3b33a903ea8bfede (diff)
Merge pull request #79 from tfoleyNV/sample-rate-reflection
Sample rate reflection
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/slang.h b/slang.h
index f5da206ce..14efc26c7 100644
--- a/slang.h
+++ b/slang.h
@@ -514,6 +514,16 @@ extern "C"
// Entry Point Reflection
+ SLANG_API char const* spReflectionEntryPoint_getName(
+ SlangReflectionEntryPoint* entryPoint);
+
+ SLANG_API unsigned spReflectionEntryPoint_getParameterCount(
+ SlangReflectionEntryPoint* entryPoint);
+
+ SLANG_API SlangReflectionVariableLayout* spReflectionEntryPoint_getParameterByIndex(
+ SlangReflectionEntryPoint* entryPoint,
+ unsigned index);
+
SLANG_API SlangStage spReflectionEntryPoint_getStage(SlangReflectionEntryPoint* entryPoint);
SLANG_API void spReflectionEntryPoint_getComputeThreadGroupSize(
@@ -521,6 +531,9 @@ extern "C"
SlangUInt axisCount,
SlangUInt* outSizeAlongAxis);
+ SLANG_API int spReflectionEntryPoint_usesAnySampleRateInput(
+ SlangReflectionEntryPoint* entryPoint);
+
// Shader Reflection
SLANG_API unsigned spReflection_GetParameterCount(SlangReflection* reflection);
@@ -857,6 +870,21 @@ namespace slang
struct EntryPointReflection
{
+ char const* getName()
+ {
+ return spReflectionEntryPoint_getName((SlangReflectionEntryPoint*) this);
+ }
+
+ unsigned getParameterCount()
+ {
+ return spReflectionEntryPoint_getParameterCount((SlangReflectionEntryPoint*) this);
+ }
+
+ VariableLayoutReflection* getParameterByIndex(unsigned index)
+ {
+ return (VariableLayoutReflection*) spReflectionEntryPoint_getParameterByIndex((SlangReflectionEntryPoint*) this, index);
+ }
+
SlangStage getStage()
{
return spReflectionEntryPoint_getStage((SlangReflectionEntryPoint*) this);
@@ -868,6 +896,11 @@ namespace slang
{
return spReflectionEntryPoint_getComputeThreadGroupSize((SlangReflectionEntryPoint*) this, axisCount, outSizeAlongAxis);
}
+
+ bool usesAnySampleRateInput()
+ {
+ return 0 != spReflectionEntryPoint_usesAnySampleRateInput((SlangReflectionEntryPoint*) this);
+ }
};
struct ShaderReflection