Sign in
dawn
/
dawn
/
refs/heads/main
/
.
/
test
/
tint
/
bug
/
fxc
/
dyn_array_idx
/
write
/
private.wgsl.expected.ir.dxc.hlsl
blob: ea4afcd20474b24e97b23b065b958f533f305e19 [
file
] [
log
] [
blame
]
struct
S
{
int
data
[
64
];
};
cbuffer cbuffer_ubo
:
register
(
b0
)
{
uint4 ubo
[
1
];
};
RWByteAddressBuffer
result
:
register
(
u1
);
static
S s
=
(
S
)
0
;
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
s
.
data
[
asint
(
ubo
[
0u
].
x
)]
=
1
;
result
.
Store
(
0u
,
asuint
(
s
.
data
[
3
]));
}