Commit 6a1e259
committed
Gate block layout validation on Vulkan environment
Match C++ validate_decorations.cpp line 1478: check_struct_layout (offset
alignment, overlap, straddle checks) only runs for Vulkan environments.
Pre-checks (Offset, ArrayStride, MatrixStride, RowMajor/ColMajor presence)
still run for all environments per C++ lines 1432-1476.
Add missing Offset-presence pre-check (isMissingOffsetInStruct equivalent).
Update block layout tests to use appropriate Vulkan target environments
(Vulkan1_0 for Uniform, Vulkan1_1 for StorageBuffer, Vulkan1_2 for
workgroup explicit layout).1 parent 0773ea4 commit 6a1e259
2 files changed
Lines changed: 128 additions & 57 deletions
Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
749 | 755 | | |
750 | 756 | | |
751 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
752 | 774 | | |
753 | 775 | | |
754 | 776 | | |
| |||
0 commit comments