SPIRV-Cross/reference/shaders-msl/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
..
atomic-decrement.asm.comp MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
atomic-increment.asm.comp MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
bitcast_iadd.asm.comp MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
bitcast_sar.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
bitcast_sdiv.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
bitcast_slr.asm.comp Expand the implementation of inherit_expression_dependencies. 2018-03-09 13:21:38 +01:00
block-name-alias-global.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
buffer-write-relative-addr.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
buffer-write.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
global-parameter-name-alias.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
image-load-store-short-vector.asm.comp MSL: Fix image load/store for short vectors. 2019-01-17 14:54:29 +01:00
multiple-entry.asm.comp MSL: Handle coherent, volatile, and restrict. 2019-07-11 10:22:30 -05:00
quantize.asm.comp Enhancements to MSL compute and entry point naming. 2017-11-05 21:34:42 -05:00
relaxed-block-layout.asm.comp Test loading from and storing to packed vectors. 2018-11-14 10:47:20 -06:00
specialization-constant-workgroup.asm.comp MSL: Declare gl_WorkGroupSize constant with [[maybe_unused]]. 2019-03-28 10:54:18 +01:00
storage-buffer-basic.invalid.asm.comp MSL: Declare gl_WorkGroupSize constant with [[maybe_unused]]. 2019-03-28 10:54:18 +01:00
struct-resource-name-aliasing.asm.comp MSL: Deal with resource name aliasing. 2019-01-18 16:27:57 +01:00
variable-pointers-2.asm.comp MSL: Support SPV_KHR_variable_pointers. 2019-01-07 11:19:10 -06:00
variable-pointers-store-forwarding.asm.comp Flush all variables after storing through a variable pointer. 2019-01-08 15:16:33 -06:00
vector-builtin-type-cast-func.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00
vector-builtin-type-cast.asm.comp MSL: Rewrite how resource indices are fallback-assigned. 2019-06-21 12:54:08 +02:00