SPIRV-Cross/reference/opt
Chip Davis 0e9ad14ba6 MSL: Handle the ViewportIndex builtin.
This requires MSL 2.0+.

Also, force `ViewportIndex` and `Layer` to be defined as the correct
type, which is always `uint` in MSL.

Since Metal doesn't yet have geometry shaders, the vertex shader (or
tessellation evaluation shader == "post-tessellation vertex shader" in
Metal jargon) is the only kind of shader that can set this output. This
currently requires an extension to Vulkan, which causes validation of
the SPIR-V binaries for the test cases to fail. Therefore, the test
cases are marked "invalid", even though they're actually perfectly valid
SPIR-V--they just won't work without the
`SPV_EXT_shader_viewport_index_layer` extension.
2018-09-18 09:52:30 -05:00
..
shaders Add test case for continue out of switch default block. 2018-09-18 11:01:15 +02:00
shaders-hlsl Add missing reference files. 2018-09-18 09:32:53 +02:00
shaders-msl MSL: Handle the ViewportIndex builtin. 2018-09-18 09:52:30 -05:00