Sign in
dawn
/
dawn
/
500f4eedd3312b0807f8f2b7aab10642600cdd80
/
.
/
test
/
tint
/
statements
/
assign
/
indexed_assign_to_array_in_struct
/
struct_vector.wgsl
blob: 99c85a995d12b973f870ff3bc43377e72f1398f7 [
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
;
}