2022-02-03 14:44:21 -08:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 aaa = {1, {{{2, {3}}, 4}}};
|
|
|
|
return aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-04-14 03:52:38 -07:00
|
|
|
draw quad
|
2022-02-03 14:44:21 -08:00
|
|
|
probe all rgba (1, 2, 3, 4)
|
|
|
|
|
|
|
|
|
|
|
|
[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]
|
|
|
|
draw quad
|
2022-04-14 03:52:34 -07:00
|
|
|
todo probe all 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]
|
2022-04-14 03:52:34 -07:00
|
|
|
todo draw quad
|
2022-02-03 14:44:21 -08:00
|
|
|
probe all rgba (21, 22, 23, 24)
|