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