SPIRV-Cross/reference
Chip Davis e75add42c9 MSL: Add support for tessellation evaluation shaders.
These are mapped to Metal's post-tessellation vertex functions. The
semantic difference is much less here, so this change should be simpler
than the previous one. There are still some hairy parts, though.

In MSL, the array of control point data is represented by a special
type, `patch_control_point<T>`, where `T` is a valid stage-input type.
This object must be embedded inside the patch-level stage input. For
this reason, I've added a new type to the type system to represent this.

On Mac, the number of input control points to the function must be
specified in the `patch()` attribute. This is optional on iOS.
SPIRV-Cross takes this from the `OutputVertices` execution mode; the
intent is that if it's not set in the shader itself, MoltenVK will set
it from the tessellation control shader. If you're translating these
offline, you'll have to update the control point count manually, since
this number must match the number that is passed to the
`drawPatches:...` family of methods.

Fixes #120.
2019-02-14 10:00:08 -06:00
..
opt MSL: Add support for tessellation evaluation shaders. 2019-02-14 10:00:08 -06:00
shaders GLSL: Fix block name shenanigans in edge cases. 2019-02-13 16:39: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 evaluation shaders. 2019-02-14 10:00:08 -06:00
shaders-msl-no-opt Pass the original pointer type to ensure_correct_attribute_type(). 2019-02-11 16:07:43 -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