Sign in
dawn
/
dawn
/
e4d210d69171910312fedb84f836653b4a9869a2
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
i32_in_struct.wgsl
blob: 6f40512f5efebe2363085107089576ef8f66a8c3 [
file
] [
log
] [
blame
]
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
);
}