| layout(set = 0, binding = 1, r32f) readonly texture2D aTexture; | |
| layout(webgpu, set = 0, texture = 2, sampler = 3) sampler2D aSampledTexture; | |
| layout(location = 1) in float2 c; | |
| noinline half4 helpers_helper(sampler2D s, layout(r32f) readonly texture2D t) { | |
| return sample(s, c); | |
| } | |
| noinline half4 helper(layout(r32f) readonly texture2D t, sampler2D s) { | |
| return helpers_helper(s, t); | |
| } | |
| void main() { | |
| sk_FragColor = helper(aTexture, aSampledTexture); | |
| } |