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