2023-10-16 03:52:55 -07:00
|
|
|
[require]
|
|
|
|
shader model >= 4.0
|
|
|
|
|
2022-06-08 16:18:40 -07:00
|
|
|
[pixel shader]
|
|
|
|
float4x1 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-06-08 16:18:41 -07:00
|
|
|
draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe all rgba (1.0, 2.0, 3.0, 4.0)
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
row_major float1x4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-06-08 16:18:41 -07:00
|
|
|
draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe all rgba (1.0, 2.0, 3.0, 4.0)
|
|
|
|
|
|
|
|
[render target 0]
|
|
|
|
format r32 float
|
|
|
|
size (640, 480)
|
|
|
|
|
|
|
|
[render target 1]
|
|
|
|
format r32 float
|
|
|
|
size (640, 480)
|
|
|
|
|
|
|
|
[render target 2]
|
|
|
|
format r32 float
|
|
|
|
size (640, 480)
|
|
|
|
|
|
|
|
[render target 3]
|
|
|
|
format r32 float
|
|
|
|
size (640, 480)
|
|
|
|
|
2023-09-14 02:29:24 -07:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 16:18:40 -07:00
|
|
|
row_major float4x1 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe render target 0 all r (1.0)
|
|
|
|
probe render target 1 all r (2.0)
|
|
|
|
probe render target 2 all r (3.0)
|
|
|
|
probe render target 3 all r (4.0)
|
|
|
|
|
2023-09-14 02:29:24 -07:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 16:18:40 -07:00
|
|
|
float1x4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe render target 0 all r (1.0)
|
|
|
|
probe render target 1 all r (2.0)
|
|
|
|
probe render target 2 all r (3.0)
|
|
|
|
probe render target 3 all r (4.0)
|
|
|
|
|
2023-04-12 12:59:06 -07:00
|
|
|
[pixel shader fail]
|
2022-06-08 16:18:40 -07:00
|
|
|
void main(out float1x2 x : sv_target0, out float1x2 y : sv_target1)
|
|
|
|
{
|
|
|
|
x = float2(1.0, 2.0);
|
|
|
|
y = float2(5.0, 6.0);
|
|
|
|
}
|
|
|
|
|
2023-09-14 02:29:24 -07:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 16:18:40 -07:00
|
|
|
void main(out float1x2 x : sv_target0, out float1x2 y : sv_target2)
|
|
|
|
{
|
|
|
|
x = float2(1.0, 2.0);
|
|
|
|
y = float2(5.0, 6.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe render target 0 all r (1.0)
|
|
|
|
probe render target 1 all r (2.0)
|
|
|
|
probe render target 2 all r (5.0)
|
|
|
|
probe render target 3 all r (6.0)
|
|
|
|
|
|
|
|
[render target 0]
|
|
|
|
format r32g32b32a32 float
|
|
|
|
size (640, 480)
|
|
|
|
|
2023-09-14 02:29:24 -07:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 16:18:40 -07:00
|
|
|
void main(out row_major float1x4 x : sv_target0, out float1x2 y : sv_target1)
|
|
|
|
{
|
|
|
|
x = float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
y = float2(5.0, 6.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2023-09-14 02:29:24 -07:00
|
|
|
todo(sm>=6) draw quad
|
2022-06-08 16:18:40 -07:00
|
|
|
probe render target 0 all rgba (1.0, 2.0, 3.0, 4.0)
|
|
|
|
probe render target 1 all r (5.0)
|
|
|
|
probe render target 2 all r (6.0)
|