Commit b331216
authored
[SPIR-V] Explicitly state which layout rules require scalar block layout (microsoft#7539)
I was trying to debug a Vulkan Storage Buffer-related memory alignment
issue in my application where I was using SPIR-V generated via `dxc`
with `-fvk-use-dx-layout`. In `SPIR-V.rst`, I happened to miss the
paragraph that follows the list of layout rules (removed in this
proposal). That paragraph starts with "To use scalar layout", which
given my use of DirectX layout, I did not think was relevant to me.
However, the next sentence of that paragraph sneakily and indirectly
mentions that `VK_EXT_scalar_block_layout` is required for the DirectX
memory layout as well.
I have proposed explicitly stating the extension requirement when the
relevant layout rules are listed.1 parent 2da0a54 commit b331216
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1015 | 1018 | | |
1016 | 1019 | | |
1017 | 1020 | | |
1018 | 1021 | | |
1019 | 1022 | | |
1020 | 1023 | | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1026 | 1027 | | |
1027 | 1028 | | |
1028 | 1029 | | |
| |||
1032 | 1033 | | |
1033 | 1034 | | |
1034 | 1035 | | |
1035 | | - | |
| 1036 | + | |
1036 | 1037 | | |
1037 | 1038 | | |
1038 | 1039 | | |
| |||
0 commit comments