2024-04-09 20:51:06 -07:00
|
|
|
[require]
|
|
|
|
shader model >= 4.1
|
|
|
|
|
|
|
|
|
|
|
|
[rtv 0]
|
2024-08-01 18:03:46 -07:00
|
|
|
format r32g32b32a32-float
|
2024-04-09 20:51:06 -07:00
|
|
|
size (2dms, 4, 640, 480)
|
|
|
|
|
2024-06-10 15:06:54 -07:00
|
|
|
[pixel shader]
|
2024-04-09 20:51:06 -07:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return float4(GetRenderTargetSampleCount(), 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(glsl | msl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (4.0, 0.0, 0.0, 0.0)
|
2024-04-09 20:51:06 -07: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 08:11:57 -07:00
|
|
|
todo(sm<6) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (-0.125, -0.375, 0.375, -0.125)
|
2024-04-09 20:51:06 -07:00
|
|
|
uniform 0 uint 2
|
2024-05-02 08:11:57 -07:00
|
|
|
todo(sm<6) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (-0.375, 0.125, 0.125, 0.375)
|