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