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