Sign in
dawn
/
dawn
/
8f1d276a3780e023f44b54385255479b4a7e3be7
/
.
/
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
)])));
}