xref: /aosp_15_r20/external/skia/resources/sksl/spirv/Ossfuzz70523.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Workerlayout(webgpu, texture=2, sampler=3) sampler2D aSampler;
2*c8dee2aaSAndroid Build Coastguard Workerlayout(webgpu, texture=3, sampler=5) sampler2D anotherSampler;
3*c8dee2aaSAndroid Build Coastguard Worker
4*c8dee2aaSAndroid Build Coastguard Workerhalf4 helpers_helper(sampler2D s) {
5*c8dee2aaSAndroid Build Coastguard Worker    return sample(s, float2(1));
6*c8dee2aaSAndroid Build Coastguard Worker}
7*c8dee2aaSAndroid Build Coastguard Worker
8*c8dee2aaSAndroid Build Coastguard Workernoinline half4 helper(sampler2D s) {
9*c8dee2aaSAndroid Build Coastguard Worker    return helpers_helper(s);
10*c8dee2aaSAndroid Build Coastguard Worker}
11*c8dee2aaSAndroid Build Coastguard Worker
12*c8dee2aaSAndroid Build Coastguard Workerhalf4 helper2(sampler2D, sampler2D s2) {
13*c8dee2aaSAndroid Build Coastguard Worker    return helper(s2);
14*c8dee2aaSAndroid Build Coastguard Worker}
15*c8dee2aaSAndroid Build Coastguard Worker
16*c8dee2aaSAndroid Build Coastguard Workervoid main() {
17*c8dee2aaSAndroid Build Coastguard Worker    helper(aSampler) + helper2(aSampler, anotherSampler);
18*c8dee2aaSAndroid Build Coastguard Worker}
19