2022-02-03 14:44:19 -08:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 color[2][3] =
|
|
|
|
{
|
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
|
|
|
};
|
|
|
|
return color[1][1];
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2021-08-19 13:00:58 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (17, 18, 19, 20)
|
2022-02-03 14:44:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 color[2][3] =
|
|
|
|
{
|
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
|
|
|
|
};
|
|
|
|
return color[1][1];
|
|
|
|
}
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 color[2][3] =
|
|
|
|
{
|
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
|
|
|
|
};
|
|
|
|
return color[1][1];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
struct stu
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int bar;
|
|
|
|
float4 foo;
|
|
|
|
} bbb[2];
|
|
|
|
int2 aaa;
|
|
|
|
};
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
struct stu val =
|
|
|
|
{
|
|
|
|
11, 12, 13, 14, 25,
|
|
|
|
21, 22, 23, 24, 25,
|
|
|
|
31, 32,
|
|
|
|
};
|
|
|
|
return val.bbb[1].foo;
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2021-08-19 13:00:58 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (22, 23, 24, 25)
|
2022-02-03 14:44:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
struct stu
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int bar;
|
|
|
|
float4 foo;
|
|
|
|
} bbb[2];
|
|
|
|
int2 aaa;
|
|
|
|
};
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
struct stu val =
|
|
|
|
{
|
|
|
|
11, 12, 13, 14, 25,
|
|
|
|
21, 22, 23, 24, 25,
|
|
|
|
31, 32, 33,
|
|
|
|
};
|
|
|
|
return val.bbb[1].foo;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
struct stu
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int bar;
|
|
|
|
float4 foo;
|
|
|
|
} bbb[2];
|
|
|
|
int2 aaa;
|
|
|
|
};
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
struct stu val =
|
|
|
|
{
|
|
|
|
11, 12, 13, 14, 25,
|
|
|
|
21, 22, 23, 24, 25,
|
|
|
|
31,
|
|
|
|
};
|
|
|
|
return val.bbb[1].foo;
|
|
|
|
}
|