Sign in
dawn
/
dawn
/
ac8975f2912608bfcdb87dd7a1f460d36d5cd093
/
.
/
test
/
bug
/
tint
/
1076.wgsl
blob: b854b18ede383788d636a1177e1de3b9fc6772b9 [
file
] [
log
] [
blame
]
struct
FragIn
{
[[
location
(
0
)]]
a
:
f32
;
[[
builtin
(
sample_mask
)]]
mask
:
u32
;
};
[[
stage
(
fragment
)]]
fn main
(
in
:
FragIn
,
[[
location
(
1
)]]
b
:
f32
)
->
FragIn
{
if
(
in
.
mask
==
0u
)
{
return
in
;
}
return
FragIn
(
b
,
1u
);
}