Sign in
dawn
/
dawn
/
9d1b7b42eb282d2ce24e329a8bf41c89fdd67973
/
.
/
test
/
tint
/
bug
/
fxc
/
dyn_array_idx
/
read
/
uniform.wgsl.expected.ir.fxc.hlsl
blob: fb1d6a67610433ed3b7569e773884bfd65e42a02 [
file
] [
log
] [
blame
]
cbuffer cbuffer_ubo
:
register
(
b0
)
{
uint4 ubo
[
5
];
};
RWByteAddressBuffer
result
:
register
(
u2
);
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint
v
=
(
16u
*
uint
(
asint
(
ubo
[
4u
].
x
)));
result
.
Store
(
0u
,
asuint
(
asint
(
ubo
[(
v
/
16u
)][((
v
%
16u
)
/
4u
)])));
}