Sign in
dawn
/
dawn
/
145e550974d086daf5b6cf2c1f1f933ee6afe0c8
/
.
/
test
/
tint
/
builtins
/
compute_subgroup_inclusive.wgsl
blob: ffdfa1dbffdfc1b252aa5550d0f32d63bdd48972 [
file
] [
log
] [
blame
]
enable chromium_experimental_subgroups
;
@compute
@workgroup_size
(
1
)
fn main
()
{
let
val
:
f32
=
2.0
;
let
subadd
:
f32
=
subgroupInclusiveAdd
(
val
);
let
submul
:
f32
=
subgroupInclusiveMul
(
val
);
}