Sign in
dawn
/
dawn
/
9b7ad9bab3398f665f45c63ae551ec8d7a7b6e92
/
.
/
test
/
tint
/
var
/
initialization
/
function
/
nested_structs.wgsl.expected.ir.fxc.hlsl
blob: 67e0b3973b589b630c735e23e6cdf52264af26de [
file
] [
log
] [
blame
]
struct
S1
{
int
i
;
};
struct
S2
{
S1 s1
;
};
struct
S3
{
S2 s2
;
};
RWByteAddressBuffer
tint_symbol
:
register
(
u0
);
int
f
(
S3 s3
)
{
return
s3
.
s2
.
s1
.
i
;
}
[
numthreads
(
1
,
1
,
1
)]
void
main
()
{
S3 v
=
{{{
42
}}};
tint_symbol
.
Store
(
0u
,
asuint
(
f
(
v
)));
}