SPIRV-Cross/reference/shaders-msl
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
..
asm MSL: Account for components when assigning locations to varyings. 2018-09-06 13:52:33 -05:00
comp Deduce constant LUTs from read-write variables. 2018-07-05 13:25:57 +02:00
desktop-only MSL: Throw error on multisampled array textures. 2018-09-03 10:21:59 +02:00
flatten MSL: Emit F{Min,Max,Clamp} as fast:: and N{Min,Max,Clamp} as precise::. 2018-09-01 23:01:46 -05:00
frag Handle interpolation qualifiers on the entire struct, too. 2018-09-06 12:29:42 -05:00
legacy/vert CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00
vert Handle interpolation qualifiers on the entire struct, too. 2018-09-06 12:29:42 -05:00
vulkan CompilerMSL support matrices & arrays in stage-in & stage-out. 2018-06-12 11:41:35 -04:00