Sign in
dawn
/
dawn
/
39b7330b5b509e7c4111faf17f6f489d719bc319
/
.
/
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
);
}