summaryrefslogtreecommitdiffstats
path: root/docs/user-guide/a2-02-metal-target-specific.md
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-12-18 15:34:52 -0800
committerGitHub <noreply@github.com>2024-12-18 15:34:52 -0800
commitabeb3758f35a48c2012dd3c39d704409c679a652 (patch)
treec26e8e0c88ab0b1d60c78a4b764b8a891bb37cf2 /docs/user-guide/a2-02-metal-target-specific.md
parent0f5a2ce2ecf79fba79a9d20c9e3bcd4c31ee45bb (diff)
Support explicit `[vk::location(n)]` binding on metal/wgsl. (#5907)
Diffstat (limited to 'docs/user-guide/a2-02-metal-target-specific.md')
-rw-r--r--docs/user-guide/a2-02-metal-target-specific.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/user-guide/a2-02-metal-target-specific.md b/docs/user-guide/a2-02-metal-target-specific.md
index e2602eb77..f63b985b5 100644
--- a/docs/user-guide/a2-02-metal-target-specific.md
+++ b/docs/user-guide/a2-02-metal-target-specific.md
@@ -276,6 +276,8 @@ Since metal does not differentiate a constant buffer, a shader resource (read-on
`spaceN` specifiers inside `register` semantics are ignored.
+The `[vk::location(N)]` attributes on stage input/output parameters are respected.
+
## Specialization Constants
Specialization constants declared with the `[SpecializationConstant]` or `[vk::constant_id]` attribute will be translated into a `function_constant` when generating Metal source.