Sign in
dawn
/
dawn
/
efda280eda8096c31cb7fbc7a5b895773559a8bb
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
i32_in_struct.wgsl.expected.wgsl
blob: e5ecd70ff7dea70d9e5f79627e8c654f9c9a059a [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
struct
str
{
i
:
i32
,
}
fn func
(
pointer
:
ptr
<
function
,
i32
>)
->
i32
{
return
*(
pointer
);
}
@compute
@workgroup_size
(
1
)
fn main
()
{
var
F
:
str
;
let
r
=
func
(&(
F
.
i
));
}