Sign in
dawn
/
dawn
/
a5d73ce965a7fa63c64d67caeb2f0d83245b7e6f
/
.
/
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
);
}