SPIRV-Cross/reference/shaders-msl
Chip Davis fc4a12fd4f MSL: Use a wrapper type for matrices in workgroup storage.
The standard `matrix` type in MSL lacked a constructor in the
`threadgroup` AS. This means that it was impossible to declare a
`threadgroup` variable that contains a matrix. This appears to have been
an oversight that was corrected in macOS 13/Xcode 14 beta 4. This
workaround continues to be required, however, for older systems.

To avoid changing interfaces unnecessarily (which shouldn't be a problem
regardless because the old and new types take up the same amount of
storage), only do this for structs if the struct is positively
identified as being used for workgroup storage.

I'm entirely aware this is inconsistent with the way packed matrices are
handled. One of them should be changed to match the other. Not sure
which one.

Fixes 23 CTS tests under `dEQP-VK.memory_model.shared`.
2022-08-07 17:31:41 -07:00
..
amd Updates for pull request #1162 2019-09-24 14:35:25 -04:00
asm Attempt more optimal codegen for OpCompositeInsert. 2022-05-18 16:37:33 +02:00
comp MSL: Use a wrapper type for matrices in workgroup storage. 2022-08-07 17:31:41 -07:00
desktop-only MSL: Use var name instead of var-type name for flattened interface members. 2022-03-04 11:38:53 -05:00
flatten MSL: Selectively enable fast-math in MSL code to match Vulkan CTS results. 2021-09-22 18:58:31 -04:00
frag Emit KHR barycentrics if source enables the KHR extension. 2022-05-27 13:28:25 +02:00
intel Updates for pull request #1162 2019-09-24 14:35:25 -04:00
legacy/vert Updates for pull request #1162 2019-09-24 14:35:25 -04:00
masking MSL: Use var name instead of var-type name for flattened interface members. 2022-03-04 11:38:53 -05:00
tesc MSL: Use var name instead of var-type name for flattened interface members. 2022-03-04 11:38:53 -05:00
tese MSL: Use var name instead of var-type name for flattened interface members. 2022-03-04 11:38:53 -05:00
vert MSL: Fixes from review for SPV_KHR_physical_storage_buffer extension. 2022-06-24 17:28:17 -04:00
vulkan MSL: Support SPV_EXT_demote_to_helper_invocation for MSL 2.3. 2020-10-13 00:25:32 -05:00