Sign in
dawn
/
dawn
/
deb2ec978575c5ead0ceeeb20b216a2c51c99578
/
.
/
test
/
tint
/
ptr_ref
/
store
/
param
/
private
/
array_in_struct.wgsl
blob: 0d7c2d8511a004efe082a458caaeb9606f9ae0dc [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
struct
str
{
arr
:
array
<
i32
,
4
>,
};
fn func
(
pointer
:
ptr
<
private
,
array
<
i32
,
4
>>)
{
*
pointer
=
array
<
i32
,
4
>();
}
var
<private>
P
:
str
;
@compute
@workgroup_size
(
1
)
fn main
()
{
func
(&
P
.
arr
);
}