xref: /aosp_15_r20/external/skia/resources/sksl/errors/MeshVertexWithBlender.mvert (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1struct Attributes {
2    float2 position;
3    float4 src;
4    float4 dst;
5};
6
7struct Varyings {
8    float2 position;
9    float4 color;
10};
11
12uniform blender myBlender;
13
14Varyings main(const Attributes attr) {
15    return Varyings(attr.position, myBlender.eval(attr.src, attr.dst));
16}
17
18/*%%*
19effects are not permitted in mesh vertex shaders
20*%%*/
21