Re: [Mesa-dev] [PATCH] spirv: Handle patch decorations up-front

2017-01-11 Thread Kenneth Graunke
On Wednesday, January 11, 2017 6:32:34 PM PST Jason Ekstrand wrote: > Once again, SPIR-V is insane... It allows you to place "patch" > decorations on structure members. Presumably, this is so that you can > do something such as > > out struct S { >layout(location = 0) patch vec4 thing1; >

[Mesa-dev] [PATCH] spirv: Handle patch decorations up-front

2017-01-11 Thread Jason Ekstrand
Once again, SPIR-V is insane... It allows you to place "patch" decorations on structure members. Presumably, this is so that you can do something such as out struct S { layout(location = 0) patch vec4 thing1; layout(location = 0) vec4 thing2; } str; And have your I/O "nicely" organized. W