2023-10-16 12:52:55 +02:00
|
|
|
[require]
|
|
|
|
shader model >= 4.0
|
|
|
|
|
2022-06-08 18:18:40 -05:00
|
|
|
[pixel shader]
|
|
|
|
float4x1 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (1.0, 2.0, 3.0, 4.0)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
row_major float1x4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (1.0, 2.0, 3.0, 4.0)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[rtv 0]
|
2022-06-08 18:18:40 -05:00
|
|
|
format r32 float
|
2024-01-24 16:11:17 -03:00
|
|
|
size (2d, 640, 480)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[rtv 1]
|
2022-06-08 18:18:40 -05:00
|
|
|
format r32 float
|
2024-01-24 16:11:17 -03:00
|
|
|
size (2d, 640, 480)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[rtv 2]
|
2022-06-08 18:18:40 -05:00
|
|
|
format r32 float
|
2024-01-24 16:11:17 -03:00
|
|
|
size (2d, 640, 480)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[rtv 3]
|
2022-06-08 18:18:40 -05:00
|
|
|
format r32 float
|
2024-01-24 16:11:17 -03:00
|
|
|
size (2d, 640, 480)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2023-09-14 19:29:24 +10:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 18:18:40 -05:00
|
|
|
row_major float4x1 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(sm>=6 | glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe rtv 0 (0,0) r (1.0)
|
|
|
|
probe rtv 1 (0,0) r (2.0)
|
|
|
|
probe rtv 2 (0,0) r (3.0)
|
|
|
|
probe rtv 3 (0,0) r (4.0)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2023-09-14 19:29:24 +10:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 18:18:40 -05:00
|
|
|
float1x4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(1.0, 2.0, 3.0, 4.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(sm>=6 | glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe rtv 0 (0,0) r (1.0)
|
|
|
|
probe rtv 1 (0,0) r (2.0)
|
|
|
|
probe rtv 2 (0,0) r (3.0)
|
|
|
|
probe rtv 3 (0,0) r (4.0)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2023-04-12 15:59:06 -04:00
|
|
|
[pixel shader fail]
|
2022-06-08 18:18:40 -05: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 19:29:24 +10:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 18:18:40 -05: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]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(sm>=6 | glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe rtv 0 (0,0) r (1.0)
|
|
|
|
probe rtv 1 (0,0) r (2.0)
|
|
|
|
probe rtv 2 (0,0) r (5.0)
|
|
|
|
probe rtv 3 (0,0) r (6.0)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[rtv 0]
|
2022-06-08 18:18:40 -05:00
|
|
|
format r32g32b32a32 float
|
2024-01-24 16:11:17 -03:00
|
|
|
size (2d, 640, 480)
|
2022-06-08 18:18:40 -05:00
|
|
|
|
2023-09-14 19:29:24 +10:00
|
|
|
[pixel shader fail(sm>=6)]
|
2022-06-08 18:18:40 -05: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]
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(sm>=6 | glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe rtv 0 (0,0) rgba (1.0, 2.0, 3.0, 4.0)
|
|
|
|
probe rtv 1 (0,0) r (5.0)
|
|
|
|
probe rtv 2 (0,0) r (6.0)
|