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