1diagnostic(off, derivative_uniformity); 2diagnostic(off, chromium.unreachable_code); 3struct FSIn { 4 @location(2) @interpolate(flat, either) bufferIndex: i32, 5}; 6struct FSOut { 7 @location(0) sk_FragColor: vec4<f32>, 8}; 9struct storageBuffer { 10 offset: u32, 11 inputData: array<SomeData>, 12}; 13@group(0) @binding(0) var<storage, read> _storage0 : storageBuffer; 14struct outputBuffer { 15 outputData: array<SomeData>, 16}; 17@group(0) @binding(1) var<storage, read_write> _storage1 : outputBuffer; 18struct SomeData { 19 a: vec4<f32>, 20 b: vec2<f32>, 21}; 22fn _skslMain(_stageIn: FSIn, coords: vec2<f32>) -> vec4<f32> { 23 { 24 let _skTemp2 = _storage0.offset; 25 let _skTemp3 = _storage0.offset; 26 _storage1.outputData[_skTemp2] = _storage0.inputData[_skTemp3]; 27 return vec4<f32>(_storage0.inputData[_stageIn.bufferIndex].a * _storage0.inputData[_stageIn.bufferIndex].b.x); 28 } 29} 30@fragment fn main(_stageIn: FSIn) -> FSOut { 31 var _stageOut: FSOut; 32 _stageOut.sk_FragColor = _skslMain(_stageIn, /*fragcoord*/ vec2<f32>()); 33 return _stageOut; 34} 35