2021-06-03 09:38:34 +00:00
|
|
|
struct FragmentInputs {
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(position)
|
2022-03-28 14:31:22 +00:00
|
|
|
position : vec4<f32>,
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(front_facing)
|
2022-03-28 14:31:22 +00:00
|
|
|
front_facing : bool,
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(sample_index)
|
2022-03-28 14:31:22 +00:00
|
|
|
sample_index : u32,
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(sample_mask)
|
2022-03-28 14:31:22 +00:00
|
|
|
sample_mask : u32,
|
2022-01-19 18:11:17 +00:00
|
|
|
}
|
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);
|
|
|
|
}
|
|
|
|
}
|