SPIRV-Cross/reference/shaders-msl-no-opt/vert
Hans-Kristian Arntzen 5b952d2cbf MSL: Rethink how opaque descriptors are passed to leaf functions.
We were passing arrays by value which the compiler fails to optimize,
causing abyssal performance. To fix this, we need to consider that
descriptors can be in constant or const device address spaces.

Also, lone descriptors are passed by value, so we explicitly remove address
space qualifiers.

One failure case is when shader passes a texture/sampler array as an
argument. It's all UniformConstant in SPIR-V, but in MSL it might be
thread, const device or constant, so that won't work ...
Global variable use works fine though, and that should cover 99.9999999%
of use cases.
2022-01-18 14:40:52 +01:00
..
cull-distance.for-tess.vert MSL: Use spvUnsafeArray for builtin arrays after all. 2021-04-19 12:10:49 +02:00
functions_nested.vert MSL: Rethink how opaque descriptors are passed to leaf functions. 2022-01-18 14:40:52 +01:00
layer.msl11.invalid.vert Move .invalid. test shaders to the more appropriate subfolders. 2019-11-06 10:40:37 +01:00
modf-storage-class.capture.vert MSL: Handle non-thread storage class in Modf/Frexp pointer versions. 2021-11-07 12:51:15 +01:00
pass-array-by-value.force-native-array.vert MSL: Support synthetic functions in function constants. 2021-09-28 19:10:16 -04:00
pass-array-by-value.vert MSL: Remove workaround for passing constant arrays to functions. 2019-10-28 12:14:43 +01:00
uninitialized-vertex-output.vert MSL: Always enable Outputs in vertex stages. 2021-01-07 11:24:47 +01:00
unused-subgroup-builtin.msl22.vert spirv_msl: Don't add fixup hooks for builtin variables if they're unused. 2020-11-25 13:41:12 -05:00
viewport-index.msl2.invalid.vert Move .invalid. test shaders to the more appropriate subfolders. 2019-11-06 10:40:37 +01:00