summaryrefslogtreecommitdiffstats
path: root/include/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-07-19 11:49:42 -0700
committerGitHub <noreply@github.com>2024-07-19 11:49:42 -0700
commitf114433debfba67cbe1db239b6e92278d41ed438 (patch)
tree3a8ff78deb657d203c87bd22bc2ee83575e834f6 /include/slang.h
parentadf758c8c4032afcd96d995840bd697d2adef34c (diff)
Support parameter block in metal shader objects. (#4671)
* Support parameter block in metal shader objects. * Ingore parameter block tests on devices without tier2 argument buffer. * Fix warning. * Fix texture subscript test. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'include/slang.h')
-rw-r--r--include/slang.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/slang.h b/include/slang.h
index 1671e7f38..6fd6da7b2 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -2316,7 +2316,7 @@ extern "C"
// The input_attachment_index subpass occupancy tracker
SLANG_PARAMETER_CATEGORY_SUBPASS,
- // Metal resource binding points.
+ // Metal tier-1 argument buffer element [[id]].
SLANG_PARAMETER_CATEGORY_METAL_ARGUMENT_BUFFER_ELEMENT,
// Metal [[attribute]] inputs.
@@ -2398,6 +2398,7 @@ extern "C"
enum SlangLayoutRules : SlangLayoutRulesIntegral
{
SLANG_LAYOUT_RULES_DEFAULT,
+ SLANG_LAYOUT_RULES_METAL_ARGUMENT_BUFFER_TIER_2,
};
typedef SlangUInt32 SlangModifierIDIntegral;
@@ -3585,6 +3586,7 @@ namespace slang
enum class LayoutRules : SlangLayoutRulesIntegral
{
Default = SLANG_LAYOUT_RULES_DEFAULT,
+ MetalArgumentBufferTier2 = SLANG_LAYOUT_RULES_METAL_ARGUMENT_BUFFER_TIER_2,
};
typedef struct ShaderReflection ProgramLayout;