diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-07-15 01:40:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-14 22:40:11 -0700 |
| commit | 138a44ef272841cb555fa0eb5c49cc889bf1d64a (patch) | |
| tree | e54f195a49a748c378210e635578b29b04e8e176 /docs/command-line-slangc-reference.md | |
| parent | 3e4fe2f6f2a40bfabc34ca5a97f8c04f631c4d23 (diff) | |
Fix vk-shift-* mapping issue (#2993)
* Fix vk-shift-* mappings.
* Add some doc info about vk-shift.
* Fix diagnostic test.
Diffstat (limited to 'docs/command-line-slangc-reference.md')
| -rw-r--r-- | docs/command-line-slangc-reference.md | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md index 3fcd7a68c..a1387df5f 100644 --- a/docs/command-line-slangc-reference.md +++ b/docs/command-line-slangc-reference.md @@ -355,9 +355,15 @@ Force using scalar block layout for uniform and shader storage buffers in GLSL o <a id="fvk-b-shift"></a> ## -fvk-b-shift, -fvk-s-shift, -fvk-t-shift, -fvk-u-shift -**-vk-<[vulkan-shift](#vulkan-shift)>-shift <N> <space>** +**-fvk-<[vulkan-shift](#vulkan-shift)>-shift <N> <space>** + +For example '-fvk-b-shift <N> <space>' shifts by N the inferred binding numbers for all resources in 'b' registers of space <space>. For a resource attached with :register(bX, <space>) but not \[vk::binding(...)\], sets its Vulkan descriptor set to <space> and binding number to X + N. If you need to shift the inferred binding numbers for more than one space, provide more than one such option. If more than one such option is provided for the same space, the last one takes effect. If you need to shift the inferred binding numbers for all sets, use 'all' as <space>. + +* \[DXC description\](https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/SPIR-V.rst#implicit-binding-number-assignment) + +* \[GLSL wiki\](https://github.com/KhronosGroup/glslang/wiki/HLSL-FAQ#auto-mapped-binding-numbers) + -For example '-vk-b-shift <N> <space>' shifts by N the inferred binding numbers for all resources in 'b' registers of space <space>. For a resource attached with :register(bX, <space>) but not \[vk::binding(...)\], sets its Vulkan descriptor set to <space> and binding number to X + N. If you need to shift the inferred binding numbers for more than one space, provide more than one such option. If more than one such option is provided for the same space, the last one takes effect. If you need to shift the inferred binding numbers for all sets, use 'all' as <space>. <a id="fvk-bind-globals"></a> @@ -824,10 +830,10 @@ Stage Vulkan Shift -* `b` : Vulkan Buffer resource -* `s` : Vulkan Sampler resource -* `t` : Vulkan Texture resource -* `u` : Vulkan Uniform resource +* `b` : Constant buffer view +* `s` : Sampler +* `t` : Shader resource view +* `u` : Unorderd access view <a id="capability"></a> # capability |
