Commit 59ebd39
committed
Added support for newer versions of SPIR-V.
The version config value is now respected for "spirv" shader type and and
used to control the version that is targeted when compiling. Other targets
use the latest version before cross-compiling.
Added support for new storage buffer representation when extracting
uniforms from SPIR-V, which has been in use since SPIR-V 1.6.
SPIR-V version define now follows the standard version code representation.
This also fixes the fact that the define improperly reported the latest
rather than the actual target, and the documentation didn't match how the
version was represented.
The version for Metal is now properly forwarded to SPIRV-Cross for
cross-compilation. This may fix some features not being enabled.
Updated glslang and SPIRV-Cross. Incremented the version to 1.8.0.1 parent d4053a7 commit 59ebd39
File tree
20 files changed
+435
-95
lines changed- Compile
- include/MSL/Compile
- src
- test
- doc
- tools/mslc
- test
20 files changed
+435
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
Submodule SPIRV-Cross updated 35 files
- CMakeLists.txt+1-1
- reference/opt/shaders-hlsl/mesh/mesh-shader-basic-lines.spv14.vk.nocompat.mesh+1-1
- reference/opt/shaders-hlsl/mesh/mesh-shader-basic-triangle.spv14.vk.nocompat.mesh+1-1
- reference/opt/shaders-msl/mesh/mesh-shader-basic-lines.msl3.spv14.vk.nocompat.mesh+2-1
- reference/opt/shaders-msl/mesh/mesh-shader-basic-triangle.msl3.spv14.vk.nocompat.mesh+2-1
- reference/opt/shaders-msl/mesh/mesh-shader-flat-varying.msl3.spv14.vk.nocompat.mesh+121
- reference/shaders-hlsl-no-opt/mesh/clip-cull-array-load-store-single.sm65.nofxc.fxconly.spv16.mesh+36
- reference/shaders-hlsl-no-opt/mesh/clip-cull-array-load-store.sm65.nofxc.fxconly.spv16.mesh+43
- reference/shaders-hlsl-no-opt/mesh/mesh-shader-basic-triangle.spv14.vk.nocompat.nofxc.flip-vert-y.mesh+1-1
- reference/shaders-hlsl/mesh/mesh-shader-basic-lines.spv14.vk.nocompat.mesh+3-3
- reference/shaders-hlsl/mesh/mesh-shader-basic-triangle.spv14.vk.nocompat.mesh+1-1
- reference/shaders-msl-no-opt/asm/frag/barycentric-centroid-noperspective.msl22.asm.frag-22
- reference/shaders-msl-no-opt/asm/frag/barycentric-centroid-perspective.msl22.asm.frag-22
- reference/shaders-msl-no-opt/asm/frag/barycentric-sample-noperspective.msl22.asm.frag-22
- reference/shaders-msl-no-opt/asm/frag/barycentric-sample-perspective.msl22.asm.frag-22
- reference/shaders-msl-no-opt/frag/explicit-lod-unpack-arguments.frag+22
- reference/shaders-msl/mesh/mesh-shader-basic-lines.msl3.spv14.vk.nocompat.mesh+2-1
- reference/shaders-msl/mesh/mesh-shader-basic-triangle.msl3.spv14.vk.nocompat.mesh+2-1
- reference/shaders-msl/mesh/mesh-shader-flat-varying.msl3.spv14.vk.nocompat.mesh+121
- shaders-hlsl-no-opt/mesh/clip-cull-array-load-store-single.sm65.nofxc.fxconly.spv16.mesh+20
- shaders-hlsl-no-opt/mesh/clip-cull-array-load-store.sm65.nofxc.fxconly.spv16.mesh+26
- shaders-msl-no-opt/asm/frag/barycentric-centroid-noperspective.msl22.asm.frag-34
- shaders-msl-no-opt/asm/frag/barycentric-centroid-perspective.msl22.asm.frag-34
- shaders-msl-no-opt/asm/frag/barycentric-sample-noperspective.msl22.asm.frag-35
- shaders-msl-no-opt/asm/frag/barycentric-sample-perspective.msl22.asm.frag-35
- shaders-msl-no-opt/frag/explicit-lod-unpack-arguments.frag+15
- shaders-msl/mesh/mesh-shader-flat-varying.msl3.spv14.vk.nocompat.mesh+23
- spirv_common.hpp+6
- spirv_cross.cpp+10-1
- spirv_cross_parsed_ir.cpp+4
- spirv_glsl.cpp+29-8
- spirv_hlsl.cpp+82-6
- spirv_hlsl.hpp+2
- spirv_msl.cpp+47-23
- test_shaders.py+1-44
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments