Sign in
dawn
/
dawn
/
ce207a7782c4ac883ed464b884ca19967b90b9de
/
.
/
test
/
tint
/
bug
/
fxc
/
dyn_array_idx
/
read
/
uniform.wgsl.expected.ir.dxc.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
)])));
}