blob: 9054ebbc592e648d32fa0ed23d927ec1c34023ae [file] [log] [blame]
Stephen White2fe0f4b2021-11-16 15:15:36 +00001#version 310 es
Stephen Whitea924ffe2022-02-04 16:41:33 +00002#extension GL_OES_sample_variables : require
Stephen White2fe0f4b2021-11-16 15:15:36 +00003precision mediump float;
4
Stephen White0b392702022-01-28 22:36:58 +00005layout(location = 0) flat in int loc0_1;
6layout(location = 1) flat in uint loc1_1;
7layout(location = 3) in vec4 loc3_1;
8layout(location = 2) in float loc2_1;
Stephen White2fe0f4b2021-11-16 15:15:36 +00009struct FragmentInputs0 {
10 vec4 position;
11 int loc0;
12};
Stephen Whitee2f35ba2022-01-26 16:48:55 +000013
Stephen White2fe0f4b2021-11-16 15:15:36 +000014struct FragmentInputs1 {
15 vec4 loc3;
16 uint sample_mask;
17};
Stephen Whitee2f35ba2022-01-26 16:48:55 +000018
Stephen White0b392702022-01-28 22:36:58 +000019void tint_symbol(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) {
Stephen White2fe0f4b2021-11-16 15:15:36 +000020 if (front_facing) {
21 vec4 foo = inputs0.position;
22 uint bar = (sample_index + inputs1.sample_mask);
23 int i = inputs0.loc0;
24 uint u = loc1;
25 float f = loc2;
26 vec4 v = inputs1.loc3;
27 }
28}
29
Stephen White0b392702022-01-28 22:36:58 +000030void main() {
31 FragmentInputs0 tint_symbol_1 = FragmentInputs0(gl_FragCoord, loc0_1);
Stephen Whitea924ffe2022-02-04 16:41:33 +000032 FragmentInputs1 tint_symbol_2 = FragmentInputs1(loc3_1, uint(gl_SampleMaskIn[0]));
Stephen White0b392702022-01-28 22:36:58 +000033 tint_symbol(tint_symbol_1, gl_FrontFacing, loc1_1, uint(gl_SampleID), tint_symbol_2, loc2_1);
Stephen White2fe0f4b2021-11-16 15:15:36 +000034 return;
35}