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