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