SPIRV-Cross/reference/shaders-msl/vert
Chip Davis 058f1a0933 MSL: Handle coherent, volatile, and restrict.
This maps them to their MSL equivalents. I've mapped `Coherent` to
`volatile` since MSL doesn't have anything weaker than `volatile` but
stronger than nothing.

As part of this, I had to remove the implicit `volatile` added for
atomic operation casts. If the buffer is already `coherent` or
`volatile`, then we would add a second `volatile`, which would be
redundant. I think this is OK even when the buffer *doesn't* have
`coherent`: `T *` is implicitly convertible to `volatile T *`, but not
vice-versa. It seems to compile OK at any rate. (Note that the
non-`volatile` overloads of the atomic functions documented in the spec
aren't present in the MSL 2.2 stdlib headers.)

`restrict` is tricky, because in MSL, as in C++, it needs to go *after*
the asterisk or ampersand for the pointer type it's modifying.

Another issue is that, in the `Simple`, `GLSL450`, and `Vulkan` memory
models, `Restrict` is the default (i.e. does not need to be specified);
but MSL likely follows the `OpenCL` model where `Aliased` is the
default. We probably need to implicitly set either `Restrict` or
`Aliased` depending on the module's declared memory model.
2019-07-11 10:22:30 -05:00
..
basic.capture.vert Take the vertex count from any indirect parameters passed. 2019-02-06 15:17:14 -06:00
basic.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
copy.flatten.vert Deal with case where a variable is dominated by inner part of a loop. 2019-06-06 11:11:44 +02:00
dynamic.flatten.vert MSL: Emit F{Min,Max,Clamp} as fast:: and N{Min,Max,Clamp} as precise::. 2018-09-01 23:01:46 -05:00
functions.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
in_out_array_mat.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
interface-block-block-composites.frag MSL: Support composites inside I/O blocks 2019-01-09 09:33:10 +01:00
interface-block-block-composites.vert MSL: Support composites inside I/O blocks 2019-01-09 09:33:10 +01:00
interpolation-qualifiers-block.vert MSL: Support global I/O block and struct Input/Output usage. 2018-09-13 16:04:24 +02:00
interpolation-qualifiers.vert Add tests showing we don't emit interpolation qualifiers in vertex shaders. 2018-09-06 12:28:22 -05:00
invariant.msl21.vert MSL: Support Invariant qualifier on position. 2019-06-12 09:39:12 +02:00
layer.msl11.invalid.vert Cast uses of Layer and ViewportIndex to the expected type. 2018-09-19 09:13:30 -05:00
leaf-function.capture.vert Take the vertex count from any indirect parameters passed. 2019-02-06 15:17:14 -06:00
no_stage_out.vert CompilerMSL vertex entry point return void when rasterization disabled. 2018-07-26 00:50:33 -04:00
no_stage_out.write_buff_atomic.vert MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
no_stage_out.write_buff.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
no_stage_out.write_tex.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
out_block.vert MSL: Support global I/O block and struct Input/Output usage. 2018-09-13 16:04:24 +02:00
packed_matrix.vert MSL: Handle packed matrices. 2019-07-10 18:37:31 -05:00
pointsize.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
read-from-row-major-array.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
resource-arrays-leaf.ios.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
resource-arrays.ios.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
return-array.vert MSL: Support copying array of arrays. 2018-09-12 09:54:55 +02:00
set_builtin_in_func.vert Fixes from PR 621 code review. 2018-06-25 11:40:20 -04:00
sign-int-types.vert MSL: Emit wrapper for SSign (sign() for int types) 2018-11-08 13:08:34 +10:00
texture_buffer.texture-buffer-native.msl21.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
texture_buffer.vert MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
ubo.alignment.vert MSL: Use correct alignment rule for whole structs. 2019-01-28 15:20:30 +01:00
ubo.vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
viewport-index.msl2.invalid.vert Cast uses of Layer and ViewportIndex to the expected type. 2018-09-19 09:13:30 -05:00