058f1a0933
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. |
||
---|---|---|
.. | ||
basic.capture.vert | ||
basic.vert | ||
copy.flatten.vert | ||
dynamic.flatten.vert | ||
functions.vert | ||
in_out_array_mat.vert | ||
interface-block-block-composites.frag | ||
interface-block-block-composites.vert | ||
interpolation-qualifiers-block.vert | ||
interpolation-qualifiers.vert | ||
invariant.msl21.vert | ||
layer.msl11.invalid.vert | ||
leaf-function.capture.vert | ||
no_stage_out.vert | ||
no_stage_out.write_buff_atomic.vert | ||
no_stage_out.write_buff.vert | ||
no_stage_out.write_tex.vert | ||
out_block.vert | ||
packed_matrix.vert | ||
pointsize.vert | ||
read-from-row-major-array.vert | ||
resource-arrays-leaf.ios.vert | ||
resource-arrays.ios.vert | ||
return-array.vert | ||
set_builtin_in_func.vert | ||
sign-int-types.vert | ||
texture_buffer.texture-buffer-native.msl21.vert | ||
texture_buffer.vert | ||
ubo.alignment.vert | ||
ubo.vert | ||
viewport-index.msl2.invalid.vert |