Sign in
dawn
/
dawn
/
f3593952882dddfecb2d06210f8cc1eb67b952d2
/
.
/
test
/
tint
/
statements
/
assign
/
indexed_assign_to_array_in_struct
/
struct_vector.wgsl
blob: 1cb39fb097b6bdf3b899911d350b8f94eaa3b9af [
file
] [
log
] [
blame
]
struct
Uniforms
{
i
:
u32
,
};
struct
OuterS
{
v1
:
vec3
<f32>
,
};
@group
(
1
)
@binding
(
4
)
var
<uniform>
uniforms
:
Uniforms
;
@compute
@workgroup_size
(
1
)
fn main
()
{
var
s1
:
OuterS
;
s1
.
v1
[
uniforms
.
i
]
=
1.0
;
}