blob: 07b82c2fadad2165c8319b63b12bbdeb4b040919 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
struct FSIn {
@location(1) c: vec2<f32>,
};
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
@group(0) @binding(1) var aTexture: texture_2d<f32>;
@group(0) @binding(10000) var aSampledTexture_Sampler: sampler;
@group(0) @binding(10001) var aSampledTexture_Texture: texture_2d<f32>;
fn helpers_helper_h4ZT(_stageIn: FSIn, s_Texture: texture_2d<f32>, s_Sampler: sampler, t: texture_2d<f32>) -> vec4<f32> {
{
return textureSample(s_Texture, s_Sampler, _stageIn.c);
}
}
fn helper_h4TZ(_stageIn: FSIn, t: texture_2d<f32>, s_Texture: texture_2d<f32>, s_Sampler: sampler) -> vec4<f32> {
{
let _skTemp2 = helpers_helper_h4ZT(_stageIn, s_Texture, s_Sampler, t);
return _skTemp2;
}
}
fn _skslMain(_stageIn: FSIn, _stageOut: ptr<function, FSOut>) {
{
let _skTemp3 = helper_h4TZ(_stageIn, aTexture, aSampledTexture_Texture, aSampledTexture_Sampler);
(*_stageOut).sk_FragColor = _skTemp3;
}
}
@fragment fn main(_stageIn: FSIn) -> FSOut {
var _stageOut: FSOut;
_skslMain(_stageIn, &_stageOut);
return _stageOut;
}