SPIRV-Cross/reference/shaders-msl-no-opt/asm/comp
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
..
arithmetic-conversion-signs.asm.comp Deal with mismatched signs in S/U/F conversion opcodes. 2019-04-10 14:03:58 +02:00
atomic-result-temporary.asm.comp MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
constant-composite-undef.asm.comp Parser: Fix OpCompositeConstruct with OpUndef. 2019-03-27 10:51:23 +01:00
glsl-signed-operations.asm.comp Properly deal with sign-dependent GLSL opcodes. 2019-03-27 12:20:53 +01:00
storage-buffer-pointer-argument.asm.comp MSL: Fix crash where variable storage buffer pointers are passed down. 2019-03-28 10:16:46 +01:00
variable-pointers.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00