2024-04-10 13:51:06 +10:00
|
|
|
[require]
|
|
|
|
shader model >= 4.1
|
|
|
|
|
|
|
|
|
|
|
|
[rtv 0]
|
2024-08-01 21:03:46 -04:00
|
|
|
format r32g32b32a32-float
|
2024-04-10 13:51:06 +10:00
|
|
|
size (2dms, 4, 640, 480)
|
|
|
|
|
2024-06-10 17:06:54 -05:00
|
|
|
[pixel shader]
|
2024-04-10 13:51:06 +10:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(GetRenderTargetSampleCount(), 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-06-10 17:06:54 -05:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (4.0, 0.0, 0.0, 0.0)
|
2024-04-10 13:51:06 +10:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader todo]
|
|
|
|
uniform uint u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(GetRenderTargetSamplePosition(u), GetRenderTargetSamplePosition(u + 1));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 uint 0
|
2024-05-02 17:11:57 +02:00
|
|
|
todo(sm<6) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (-0.125, -0.375, 0.375, -0.125)
|
2024-04-10 13:51:06 +10:00
|
|
|
uniform 0 uint 2
|
2024-05-02 17:11:57 +02:00
|
|
|
todo(sm<6) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (-0.375, 0.125, 0.125, 0.375)
|