Sign in
dawn
/
dawn
/
2a7005f4161fe3088544faa6557aaaa85a9cbf77
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
workgroup
/
struct_in_array.wgsl.expected.wgsl
blob: 2a586fb9f0990398ab2de3e50830655474f6113e [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
struct
str
{
i
:
i32
,
}
var
<workgroup>
S
:
array
<
str
,
4
>;
fn func
(
pointer
:
ptr
<
workgroup
,
str
>)
->
str
{
return
*(
pointer
);
}
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&(
S
[
2
]));
}