SPIRV-Cross/reference
Chip Davis eb89c3a428 MSL: Add support for tessellation control shaders.
These are transpiled to kernel functions that write the output of the
shader to three buffers: one for per-vertex varyings, one for per-patch
varyings, and one for the tessellation levels. This structure is
mandated by the way Metal works, where the tessellation factors are
supplied to the draw method in their own buffer, while the per-patch and
per-vertex varyings are supplied as though they were vertex attributes;
since they have different step rates, they must be in separate buffers.

The kernel is expected to be run in a workgroup whose size is the
greater of the number of input or output control points. It uses Metal's
support for vertex-style stage input to a compute shader to get the
input values; therefore, at least one instance must run per input point.
Meanwhile, Vulkan mandates that it run at least once per output point.
Overrunning the output array is a concern, but any values written should
either be discarded or overwritten by subsequent patches. I'm probably
going to put some slop space in the buffer when I integrate this into
MoltenVK to be on the safe side.
2019-02-07 08:51:22 -06:00
..
opt MSL: Add support for tessellation control shaders. 2019-02-07 08:51:22 -06:00
shaders Support LUTs in single-function CFGs on Private storage class. 2019-02-06 10:38:59 +01:00
shaders-hlsl Support LUTs in single-function CFGs on Private storage class. 2019-02-06 10:38:59 +01:00
shaders-hlsl-no-opt MSL: Fix case where we pass arrays to functions by value. 2019-01-14 11:00:14 +01:00
shaders-msl MSL: Add support for tessellation control shaders. 2019-02-07 08:51:22 -06:00
shaders-msl-no-opt MSL: Add support for tessellation control shaders. 2019-02-07 08:51:22 -06:00
shaders-no-opt MSL: Fix case where we pass arrays to functions by value. 2019-01-14 11:00:14 +01:00
shaders-reflection Prefix integer types with underscore 2018-06-21 09:24:22 -07:00