2022-02-03 14:44:21 -08:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aaa = {1, {{{2, {3}}, 4}}};
|
|
|
|
return aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2021-08-19 13:00:58 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (1, 2, 3, 4)
|
2022-02-03 14:44:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aaa[3] =
|
|
|
|
{
|
|
|
|
11, {{{12, {13}}, 14},
|
|
|
|
21, 22}, 23, {{24,
|
|
|
|
31, {32, 33}, 34}},
|
|
|
|
};
|
|
|
|
return aaa[1];
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2021-08-19 13:00:58 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (21, 22, 23, 24)
|
2022-02-03 14:44:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
struct stu1
|
|
|
|
{
|
|
|
|
float4 aaa;
|
|
|
|
float4 bbb;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct stu2
|
|
|
|
{
|
|
|
|
int3 ccc;
|
|
|
|
stu1 ddd;
|
|
|
|
};
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
struct stu2 val =
|
|
|
|
{
|
|
|
|
11, {12, 13,
|
|
|
|
21, {{{22}}}, 23}, {{24,
|
|
|
|
31, 32}}, 33, 34,
|
|
|
|
};
|
|
|
|
return val.ddd.aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2021-08-19 13:00:58 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (21, 22, 23, 24)
|