blob: 37c721f33832a152d68f3325ad18d590ec1de464 [file]
layout(set = 0, binding = 1) 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, readonly texture2D t) {
return sample(s, c);
}
noinline half4 helper(readonly texture2D t, sampler2D s) {
return helpers_helper(s, t);
}
void main() {
sk_FragColor = helper(aTexture, aSampledTexture);
}