2021-06-03 09:38:34 +00:00
|
|
|
struct FragmentInputs {
|
2022-03-28 14:31:22 +00:00
|
|
|
@builtin(position) position : vec4<f32>,
|
|
|
|
@builtin(front_facing) front_facing : bool,
|
|
|
|
@builtin(sample_index) sample_index : u32,
|
|
|
|
@builtin(sample_mask) sample_mask : u32,
|
2021-06-03 09:38:34 +00:00
|
|
|
};
|
|
|
|
|
2022-06-07 13:55:34 +00:00
|
|
|
@fragment
|
2021-06-03 09:38:34 +00:00
|
|
|
fn main(inputs : FragmentInputs) {
|
|
|
|
if (inputs.front_facing) {
|
|
|
|
let foo : vec4<f32> = inputs.position;
|
|
|
|
let bar : u32 = inputs.sample_index + inputs.sample_mask;
|
|
|
|
}
|
|
|
|
}
|