SPIRV-Cross/reference/shaders-msl/asm
Chip Davis 4b99fdd5d0 MSL: Account for components when assigning locations to varyings.
Two varyings (vertex outputs/fragment inputs) might have the same
location but be in different components--e.g. the compiler may have
packed what were two different varyings into a single varying vector.
Giving both varyings the same `[[user]]` attribute won't work--it may
yield unexpected results, or flat out fail to link. We could eventually
pack such varyings into a single vector, but that would require us to
handle the case where the varyings are different types--e.g. a `float`
and a `uint` packed into the same vector. For now, it seems most
prudent to give them unique `[[user]]` locations and let Apple's
compiler work out the best way to pack them.
2018-09-06 13:52:33 -05:00
..
comp MSL: Correct number of words to skip in OpImageWrite. 2018-09-05 10:02:25 -05:00
frag MSL: Account for components when assigning locations to varyings. 2018-09-06 13:52:33 -05:00
vert Deal with some builtins being declared with wrong signedness. 2018-06-22 11:30:56 +02:00