tests/shader_runner: Add GLSL support to the GL runner.

This commit is contained in:
Henri Verbeet 2024-03-19 12:36:23 +01:00 committed by Alexandre Julliard
parent 164608a007
commit 0715734dfb
Notes: Alexandre Julliard 2024-03-19 23:17:49 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/730
159 changed files with 989 additions and 859 deletions

View File

@ -8,8 +8,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.7 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.1, 0.7, 0.4, 0.4)
uniform 0 float4 -0.7 0.1 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.7, 0.1, 1.2, 0.4)

View File

@ -11,17 +11,17 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.1 1.6 1.3 0.5
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[test]
uniform 0 float4 0.0 1.6 1.3 0.5
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[test]
uniform 0 float4 1.0 0.0 1.3 0.5
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader]
@ -34,12 +34,12 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[test]
uniform 0 float4 0.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader]
@ -53,11 +53,11 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 0.0 0.0
uniform 4 float4 3.0 4.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[test]
uniform 0 float4 1.0 2.0 0.0 0.0
uniform 4 float4 0.0 4.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 30.0 150.0 180.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.52359877, 2.61799387, 3.14159265)
@ -22,5 +22,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 0.78539816 1.57079632 2.35619449
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 45.0, 90.0, 135.0)

View File

@ -8,25 +8,25 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 1.0 1.0 1.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 1.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 0.0 1.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 0.0 0.0 1.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 0.0 0.0 0.0 1.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 0.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
uniform 0 float4 -1.0 -1.0 -1.0 -1.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -39,13 +39,13 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 0.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
uniform 0 float4 -1.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
@ -60,27 +60,27 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 1 1 1 1
if(sm>=4) uniform 0 uint4 1 1 1 1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 1 0 0 0
if(sm>=4) uniform 0 uint4 1 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 0 1 0 0
if(sm>=4) uniform 0 uint4 0 1 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 0 0 1 0
if(sm>=4) uniform 0 uint4 0 0 1 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 0 0 0 1
if(sm>=4) uniform 0 uint4 0 0 0 1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 0 0 0 0
if(sm>=4) uniform 0 uint4 0 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader todo(sm<4)]
@ -94,9 +94,9 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 1 0 0 0
if(sm>=4) uniform 0 uint4 1 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm<4) uniform 0 float4 0 0 0 0
if(sm>=4) uniform 0 uint4 0 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 15.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (20.0, -10.0, 75.0, 0.33333333) 1
[pixel shader todo(sm<4)]
@ -25,7 +25,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 15.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0) 1
[pixel shader todo(sm<4)]
@ -40,7 +40,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 42.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, -2.0, 2.0, -2.0) 16
[pixel shader todo(sm<4)]
@ -55,7 +55,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 45.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader todo(sm<4)]
@ -69,7 +69,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 5.0 -42.1 4.0 45.0
uniform 4 float4 15.0 -5.0 4.1 5.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, -2.1, 4.0, 0.0) 6
[require]
@ -88,7 +88,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1e99, 1e99, 1e99, 1e99)
[pixel shader todo]

View File

@ -8,7 +8,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (20.0, -10.0, 75.0, 0.33333333)
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, -2.0, 2.0, -2.0) 16
[pixel shader]
@ -47,7 +47,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader]
@ -60,7 +60,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, -2.1, 4.0, 0.0) 6
[require]
@ -77,5 +77,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1e99, 1e99, 1e99, 1e99)

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 16.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (21.0, -11.0, 80.0, 0.0)
[pixel shader todo(sm<4)]
@ -25,7 +25,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 16.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader todo(sm<4)]
@ -40,7 +40,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 42.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (8.0, -8.0, -8.0, 8.0)
[pixel shader todo(sm<4)]
@ -55,7 +55,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 42.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, -2.0, 2.0, -2.0)
[pixel shader todo(sm<4)]
@ -70,7 +70,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 45.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (9.0, -9.0, -9.0, 9.0)
[pixel shader todo(sm<4)]
@ -85,7 +85,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 45.0 5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader]
@ -98,7 +98,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 -7.0 0.0 -10.0
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 7.0, 0.0, 10.0)
[pixel shader todo(sm<4)]
@ -117,7 +117,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 45.0 5.0 50.0 10.0
uniform 4 float4 3.0 8.0 2.0 5.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (9.0, 5.0, 1.0, 3.0)
[require]

View File

@ -8,7 +8,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (20.0, -10.0, 75.0, 0.0)
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (8.0, -8.0, -8.0, 8.0)
[pixel shader]
@ -47,7 +47,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, -2.0, 2.0, -2.0)
[pixel shader]
@ -60,7 +60,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (9.0, -9.0, -9.0, 9.0)
[pixel shader]
@ -73,7 +73,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader fail(sm<6)]
@ -87,7 +87,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader fail(sm<6)]
@ -101,7 +101,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
@ -118,7 +118,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
if(sm<6) probe all rgba (-2147483648.0, -2147483648.0, -2147483648.0, -2147483648.0)
if(sm>=6) probe all rgba (0.0, 0.0, 0.0, 0.0)
@ -134,5 +134,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 1.0, 3.0)

View File

@ -11,7 +11,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (20.0, 4294967296.0, 75.0, 0.0)
[pixel shader]
@ -24,7 +24,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 5.0, 4294967296.0, 3.0)
[pixel shader fail(sm<6)]
@ -37,7 +37,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[pixel shader fail(sm<6)]
@ -50,5 +50,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)

View File

@ -12,7 +12,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (25.0, 25.0, 25.0, 25.0)
@ -78,7 +78,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (15.0, 26.0, 37.0, 48.0)
@ -153,7 +153,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (136.0, 136.0, 136.0, 136.0)
@ -171,5 +171,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (702.0, 702.0, 702.0, 702.0)

View File

@ -14,7 +14,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)
@ -36,7 +36,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (61, 62, 63, 64)
[pixel shader]
@ -49,7 +49,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2, 3, 6, 1)
% Additional level of indirection

View File

@ -20,7 +20,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 123.0 -2.0 456 0.01
draw quad
todo(glsl) draw quad
probe (320,240) rgba (123.0, -2.0, 456.0, 0.01)
[pixel shader]
@ -36,7 +36,7 @@ float4 main() : sv_target
uniform 0 float4 11 12 0 0
uniform 4 float4 13 14 0 0
uniform 8 float4 20 21 22 23
draw quad
todo(glsl) draw quad
probe (320,240) rgba (13.0, 21.0, 0.0, 0.0)
[pixel shader fail]

View File

@ -20,7 +20,7 @@ float4 main() : sv_target
[test]
uniform 0 uint4 123 0xc0000000 456 0x7fd69345
draw quad
todo(glsl) draw quad
probe (320,240) rgba (123.0, 3221225472.0, 456.0, 2144768896.0)
@ -37,7 +37,7 @@ float4 main() : sv_target
uniform 0 uint4 11 12 0 0
uniform 4 uint4 13 14 0 0
uniform 8 uint4 20 21 22 23
draw quad
todo(glsl) draw quad
probe (320,240) rgba (13.0, 21.0, 0.0, 0.0)

View File

@ -11,7 +11,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 163840.0, 480.0)
[pixel shader]
@ -26,7 +26,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (-2147483648.0, 4.0, 2147483650.0, 4.0)
[pixel shader]
@ -41,7 +41,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 536870912.0, 1.0, 1073741824.0)
[pixel shader]
@ -54,7 +54,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 15.0, 10.0, -6.0)
[pixel shader]
@ -67,7 +67,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -80,7 +80,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -93,7 +93,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 0.0)
[pixel shader]
@ -106,7 +106,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 163840.0, 480.0)
[pixel shader]
@ -119,7 +119,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 15.0, 10.0, 4294967296.0)
[pixel shader]
@ -132,7 +132,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -145,7 +145,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -158,7 +158,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 0.0)
[pixel shader todo]

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 1.0, 1.0)
@ -27,7 +27,7 @@ float4 main() : SV_TARGET
uniform 0 float4 0.0 0.0 2.0 4.0
if(sm<4) uniform 4 float4 0 1 0 10
if(sm>=4) uniform 4 int4 0 1 0 10
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 10.0, 1.0, 11.0)
@ -42,5 +42,5 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 1.0 1.0 1.0 0.0
if(sm>=4) uniform 0 uint4 0x00000001 0x00000002 0x80000000 0x00000000
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 0.0)

View File

@ -49,5 +49,5 @@ float4 main(struct input i) : sv_target
}
[test]
todo(sm>=6) draw triangle strip 4
todo(sm>=6 | glsl) draw triangle strip 4
probe all rgba (0.0, 2.0, 2.0, 2.0)

View File

@ -19,7 +19,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (84.0, 84.0, 84.0, 84.0)
@ -94,5 +94,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (33.0, 33.0, 33.0, 33.0)

View File

@ -16,7 +16,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 1.0)
@ -39,7 +39,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
@ -55,7 +55,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
@ -86,7 +86,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (7.0, 7.0, 7.0, 7.0)
@ -119,7 +119,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (3.0, 3.0, 3.0, 3.0)
@ -159,7 +159,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 20.0, 30.0, 30.0)
@ -181,7 +181,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 10.0, 11.4, 12.4)
@ -197,7 +197,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (11.0, 12.0, 13.0, 14.0)
@ -220,7 +220,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21.0, 22.0, 23.0, 24.0)
@ -236,7 +236,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (31.0, 32.0, 33.0, 33.0)
@ -258,7 +258,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (41.0, 42.0, 43.0, 44.0)
@ -297,7 +297,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (55.0, 56.0, 57.0, 58.0)
@ -329,7 +329,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (61.0, 62.0, 63.0, 64.0)
@ -355,7 +355,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (71.0, 72.0, 73.0, 74.0)
@ -404,7 +404,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (81.0, 82.0, 83.0, 84.0)
@ -420,7 +420,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (91.0, 92.0, 93.0, 0.0)
@ -436,7 +436,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (11.0, 12.0, 13.0, 0.0)
@ -477,7 +477,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21.0, 22.0, 23.0, 24.0)
@ -499,7 +499,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (31.0, 32.0, 33.0, 0.0)
@ -521,7 +521,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (41.0, 42.0, 43.0, 0.0)
@ -537,7 +537,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (51.0, 52.0, 53.0, 0.0)
@ -564,7 +564,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (61.0, 62.0, 63.0, 0.0)
@ -580,5 +580,5 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (71.0, 72.0, 73.0, 0.0)

View File

@ -50,7 +50,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 1.0)
@ -89,7 +89,7 @@ float4 main() : sv_target
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
@ -120,7 +120,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (4.0, 4.0, 4.0, 4.0)
@ -154,7 +154,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 5.0, 5.0, 5.0)
@ -199,7 +199,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (71.0, 73.0, 73.0, 74.0)

View File

@ -18,7 +18,7 @@ if(sm>=4) uniform 0 int -1
if(sm>=4) uniform 1 uint 3
if(sm>=4) uniform 2 int -2
if(sm>=4) uniform 3 float 0.5
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)
@ -33,5 +33,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)

View File

@ -18,7 +18,7 @@ if(sm>=4) uniform 0 int -1
if(sm>=4) uniform 1 uint 3
if(sm>=4) uniform 2 int -2
if(sm>=4) uniform 3 float 0.5
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)
@ -33,5 +33,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)

View File

@ -10,7 +10,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 10.3 11.5 12.8 13.1
draw quad
todo(glsl) draw quad
probe all rgba (10, 11, 12, 0)
@ -40,7 +40,7 @@ if(sm>=4) uniform 0 float 2.6
if(sm>=4) uniform 1 int -2
if(sm>=4) uniform 2 int -2
if(sm>=4) uniform 3 float -3.6
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)
@ -61,6 +61,6 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
if(sm<4) todo probe all rgba (0.5, 4.2949673e+009, 0.5, 0.5)
if(sm>=4) probe all rgba (0.5, 0.5, 0.5, 0.5)

View File

@ -25,7 +25,7 @@ uniform 0 float 2.6
uniform 1 int 2
uniform 2 int -2
uniform 3 float -3.6
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)
@ -46,5 +46,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.5, 0.5, 0.5)

View File

@ -13,7 +13,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@ -43,7 +43,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader fail(sm>=6)]
@ -65,7 +65,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@ -79,7 +79,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader fail]
@ -132,7 +132,7 @@ uniform 0 float4 0.0 1.0 2.0 3.0
uniform 4 float4 4.0 5.0 6.0 7.0
uniform 8 float4 8.0 9.0 10.0 11.0
uniform 12 float4 12.0 13.0 14.0 15.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 2.0, 4.0, 8.0)
@ -153,7 +153,7 @@ float4 main() : sv_target
uniform 0 float4 0.0 1.0 2.0 3.0
uniform 4 float4 4.0 5.0 6.0 7.0
uniform 8 float4 8.0 9.0 10.0 11.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 4.0, 8.0, 9.0)
@ -179,7 +179,7 @@ uniform 0 float4 0.0 1.0 2.0 3.0
uniform 4 float4 4.0 5.0 6.0 7.0
uniform 8 float4 8.0 9.0 10.0 11.0
uniform 12 float4 12.0 13.0 14.0 15.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 4.0, 5.0, 6.0)
@ -236,7 +236,7 @@ float4 main() : sv_target
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
draw quad
todo(glsl) draw quad
probe all rgba (509, 610, 711, 812)
@ -264,7 +264,7 @@ uniform 0 float4 0.0 1.0 2.0 3.0
uniform 4 float4 4.0 5.0 6.0 7.0
uniform 8 float4 8.0 9.0 10.0 11.0
uniform 12 float4 12.0 13.0 14.0 15.0
draw quad
todo(glsl) draw quad
probe all rgba (12468.0, 13509.0, 14010.0, 15011.0)
@ -281,7 +281,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 2.0, 3.0)
@ -386,7 +386,7 @@ float4 main() : sv_target
uniform 0 float 1.0
uniform 1 float 2.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (512.0, 612.0, 712.0, 812.0)
@ -417,7 +417,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (3.0, 4.0, 3.0, 4.0)
@ -559,7 +559,7 @@ float4 main() : sv_target
uniform 0 float4 1.0 0.0 0.0 0.0
uniform 4 float4 0.0 2.0 0.0 0.0
uniform 8 float4 0.0 0.0 3.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 0.0, 4.0)
@ -609,7 +609,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
@ -786,5 +786,5 @@ uniform 0 float4 0.0 1.0 2.0 3.0
uniform 4 float4 4.0 5.0 6.0 7.0
uniform 8 float4 8.0 9.0 10.0 11.0
uniform 12 float4 12.0 13.0 14.0 15.0
draw quad
todo(glsl) draw quad
probe all rgba (124.0, 135.0, 146.0, 150.5)

View File

@ -5,7 +5,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 7.0, 8.0, 4.0) 4
[pixel shader]
@ -18,7 +18,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 7.0, 8.0, 4.0) 4
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (7.0, 8.0, 0.0, 4.0) 4
[pixel shader]
@ -51,5 +51,5 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 -1 6 7 3
if(sm>=4) uniform 0 int4 -1 6 7 3
draw quad
todo(glsl) draw quad
probe all rgba (6.0, 7.0, -1.0, 3.0) 4

View File

@ -124,8 +124,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 -2.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
uniform 0 float4 -0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.3 -0.1 0.7 0.0
draw quad
todo(glsl) draw quad
probe all rgba (-0.1, 0.7, -0.3, 0.3)
@ -24,7 +24,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.5, 5.0, 4.2, 5.2)

View File

@ -9,14 +9,14 @@ float4 main() : sv_target
[test]
uniform 0 float4 1 2 3 4
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (1, 2, 3, 4)
uniform 0 float4 9 8 7 6
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (9, 8, 7, 6)
uniform 0 float4 -1 8 7 6
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (9, 8, 7, 6)
uniform 0 float4 9 0 7 6
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (9, 0, 7, 6)

View File

@ -45,7 +45,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0, 0, 0, 1)
@ -60,7 +60,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10, 10, 10, 11)
@ -74,7 +74,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 21, 21, 11)
@ -90,7 +90,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (12, 12, 12, 111)
@ -105,7 +105,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (104, 104, 104, 111)
@ -129,7 +129,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1, 1, 1, 11)

View File

@ -6,5 +6,5 @@ float4 main(): sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.6, 0.7, 0.8, 0.9)

View File

@ -17,5 +17,5 @@ void main()
}
[test]
dispatch 1 1 1
todo(glsl) dispatch 1 1 1
probe uav 0 (0, 0) r (-123.0)

View File

@ -11,10 +11,10 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.9, 0.8, 0.7, 0.6)
uniform 0 float4 0.1 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader todo(sm<4)]
@ -43,7 +43,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.9, 0.8, 0.7, 0.6)
[pixel shader fail(sm<6)]
@ -88,7 +88,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.9, 0.8, 0.7, 0.6)
[pixel shader]
@ -105,5 +105,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (9.0, 10.0, 11.0, 12.0)

View File

@ -10,7 +10,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 0.1 0.2 0.3 0.4
draw quad
todo(glsl) draw quad
probe all rgba (1.1, 2.2, 3.3, 4.4)
[pixel shader fail(sm<6)]

View File

@ -12,7 +12,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1 -2 3 4
uniform 4 float4 10 100 1000 10000
draw quad
todo(glsl) draw quad
probe all rgba (-2300, -970, 120, 0)
@ -29,5 +29,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 1 -2 3 4
draw quad
todo(glsl) draw quad
probe all rgba (-20, 8, 12, 3.5)

View File

@ -11,7 +11,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (1912.0, 1657.0, -127.0, 867.0) 1
[pixel shader]
@ -24,5 +24,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (-127.0, -127.0, -127.0, -127.0) 1

View File

@ -8,7 +8,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
todo(sm<4) probe all rgba (1.0, 1.0, 0.0, 0.0)
@ -29,7 +29,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
todo(sm<4) probe (10, 10) rgba (-16.0, -5.0, 3.0, 0.0)
todo(sm<4) probe (11, 10) rgba (-21.0, -5.0, 3.0, 0.0)
todo(sm<4) probe (10, 11) rgba (-13.0, -5.0, 3.0, 0.0)
@ -55,7 +55,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (10, 10) rgba (-16.0, -5.0, 3.0, 0.0)
probe (11, 10) rgba (-21.0, -5.0, 3.0, 0.0)
probe (10, 11) rgba (-13.0, -5.0, 3.0, 0.0)
@ -74,7 +74,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (10, 10) rgba (-0.524999976, -0.164999843, 0.104999900, 0.0) 16
probe (11, 10) rgba (-0.689999819, -0.164999843, 0.114999890, 0.0) 32
probe (10, 11) rgba (-0.420000076, -0.154999852, 0.104999900, 0.0) 32

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 9.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (9.0, 9.0, 9.0, 9.0)
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -35,7 +35,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (-4.0, -4.0, -4.0, -4.0)
[pixel shader]
@ -49,7 +49,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -64,7 +64,7 @@ float4 main() : sv_target
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 -6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
draw quad
todo(glsl) draw quad
probe all rgba (192.0, 192.0, 192.0, 192.0)
[pixel shader]
@ -80,7 +80,7 @@ uniform 0 float4 1.0 -2.0 3.0 4.0
uniform 4 float4 5.0 6.0 -7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 13.0 14.0 15.0 16.0
draw quad
todo(glsl) draw quad
probe all rgba (-672.0, -672.0, -672.0, -672.0)
[pixel shader]
@ -96,7 +96,7 @@ uniform 0 float4 1.0 2.0 3.0 0.0
uniform 4 float4 5.0 -6.0 7.0 0.0
uniform 8 float4 9.0 10.0 11.0 0.0
uniform 12 float4 0.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (192.0, 192.0, 192.0, 192.0)
[pixel shader fail]

View File

@ -9,8 +9,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 1 2 3 4
todo(sm<4 | sm>=6) draw quad
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (1, 2, 3, 4)
uniform 0 float4 9 8 7 6
todo(sm<4 | sm>=6) draw quad
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (1, 2, 3, 4)

View File

@ -10,7 +10,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -2.0 3.0 4.0 0.1
uniform 4 float4 2.0 -1.0 4.0 5.0
draw quad
todo(glsl) draw quad
probe all rgba (7.483983, 7.483983, 7.483983, 7.483983) 1
[pixel shader]

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
uniform 4 float4 10.0 11.0 12.0 13.0
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (166.0, 166.0, 166.0, 166.0)
[pixel shader]
@ -25,7 +25,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 0.0 0.0
uniform 4 float4 10.0 11.0 12.0 13.0
todo(sm<4 | sm>=6) draw quad
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (53.0, 53.0, 53.0, 53.0)
[pixel shader]
@ -40,7 +40,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
uniform 4 float4 10.0 11.0 12.0 13.0
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (92.0, 92.0, 92.0, 92.0)
[pixel shader]
@ -55,8 +55,8 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 10.0 11.0 12.0 13.0
uniform 4 float4 2.0 0.0 0.0 0.0
todo(sm>=6) draw quad
probe all rgba (92.0, 92.0, 92.0, 92.0)
todo(sm>=6 | glsl) draw quad
probe all rgba (92.0, 92.0, 92.0, 92.0)
[pixel shader]
uniform float x;
@ -71,7 +71,7 @@ float4 main() : SV_TARGET
% Account for both the SM1 and SM4 uniform layout
uniform 0 float4 2.0 3.0 0.0 0.0
uniform 4 float4 3.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (6.0, 6.0, 6.0, 6.0)
[pixel shader]
@ -84,7 +84,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (110.0, 110.0, 110.0, 110.0)
[pixel shader fail]

View File

@ -7,6 +7,6 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
if(sm<6) probe all rgba (0.1, 0.2, 0.3, 0.4)
if(sm>=6) probe all rgba (0.1, 0.3, 0.2, 0.4)

View File

@ -36,7 +36,7 @@ float4 main(float tex : texcoord) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
[pixel shader]
@ -49,7 +49,7 @@ float4 main(float tex : texcoord) : sv_target
float4 main(float tex : bogus) : bogus;
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
@ -85,7 +85,7 @@ float4 main(in apple a) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (10.0, 20.0, 30.0, 40.0)
@ -102,7 +102,7 @@ float4 main(in apple a) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (10.0, 11.0, 30.0, 31.0)
@ -126,7 +126,7 @@ float4 main(in apple aps[2][2]) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (10.0, 10.0, 20.0, 20.0)
@ -148,7 +148,7 @@ float4 main(in banana bans[2]) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
todo(sm>=6) probe (0, 0) rgba (10.0, 11.0, 20.0, 21.0)
@ -212,7 +212,7 @@ float4 main(in float4 tex0 : TEXCOORD0, in float4 tex1 : TEXCOORD1) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (1.0, 2.0, 10.0, 20.0)
@ -275,7 +275,7 @@ float4 main(in float4 t1 : TEXCOORD0, in float4 t2 : TEXCOORD0) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
todo(sm>=6) probe (0, 0) rgba (99.0, 99.0, 10.0, 11.0)
@ -287,7 +287,7 @@ float4 main(in float4 a : TEXCOORD0, in float3 b : TEXCOORD1) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (10.0, 11.0, 20.0, 21.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 1.0 2.0
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 1.0, 2.0, 4.0) 2
[pixel shader]
@ -21,5 +21,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 1.0 2.0
draw quad
todo(glsl) draw quad
probe all rgba (0.36787948, 1.0, 2.7182815, 7.38905573) 2

View File

@ -9,7 +9,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (8.0, 8.0, 8.0, 8.0)
@ -26,7 +26,7 @@ float4 main() : sv_target
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float 2
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 10.0, 10.0, 10.0)
@ -40,7 +40,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (3.0, 3.0, 3.0, 3.0)
@ -56,10 +56,10 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float 0
draw quad
todo(glsl) draw quad
probe all rgba (4.0, 4.0, 4.0, 4.0)
uniform 4 float 2
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
@ -78,7 +78,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
draw quad
todo(glsl) draw quad
probe all rgba (4.0, 4.0, 4.0, 4.0)
@ -99,5 +99,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float 1
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 2.0)

View File

@ -9,7 +9,7 @@ float4 main() : sv_target
[test]
uniform 0 float 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
@ -55,7 +55,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.0 1.5 1.5 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
% SM1-3 apparently treats '0/0' as zero.
if(sm<4) todo probe all rgba (1010101.0, 11001100.0, 1101001.0, 11.0)
% SM4-5 optimises away the 'not' by inverting the condition, even though this is invalid for NaN.

View File

@ -5,7 +5,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (-1.0, 6.0, 7.0, 3.0) 4
[pixel shader]
@ -18,7 +18,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (-1.0, 6.0, 7.0, 3.0) 4
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
todo(glsl) draw quad
probe all rgba (6.0, 7.0, -1.0, 3.0) 4
@ -52,5 +52,5 @@ float4 main() : sv_target
[test]
if(sm<4) uniform 0 float4 -1 6 7 3
if(sm>=4) uniform 0 int4 -1 6 7 3
draw quad
todo(glsl) draw quad
probe all rgba (6.0, 7.0, -1.0, 3.0) 4

View File

@ -8,10 +8,10 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-0.5, 0.0, 0.0, 0.0) 4
uniform 0 float4 1.1 0.3 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.2, 0.0, 0.0, 0.0) 4
[pixel shader todo(sm<4)]
@ -24,8 +24,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.5 6.5 2.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-0.5, 0.5, 0.0, 0.0) 4
uniform 0 float4 1.1 0.3 3.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.1, 0.3, 0.0, 0.0) 4

View File

@ -23,7 +23,7 @@ float4 main(float tex : texcoord) : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe ( 0, 0, 159, 480) rgba (10.0, 35.0, 0.0, 0.0)
probe (161, 0, 479, 480) rgba (10.0, 38.0, 0.0, 0.0)
probe (481, 0, 640, 480) rgba ( 5.0, 10.0, 0.0, 0.0)
@ -54,7 +54,7 @@ float4 main(float tex : texcoord) : sv_target
[test]
uniform 0 uint4 10 0 0 0
draw quad
todo(glsl) draw quad
probe ( 0, 0, 159, 480) rgba (10.0, 35.0, 0.0, 0.0)
probe (161, 0, 479, 480) rgba (10.0, 38.0, 0.0, 0.0)
probe (481, 0, 640, 480) rgba ( 5.0, 10.0, 0.0, 0.0)
@ -76,7 +76,7 @@ float4 main(float tex : texcoord) : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (10.0, 45.0, 0.0, 0.0)
[pixel shader fail(sm<6)]

View File

@ -8,5 +8,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.1 1.6 1.3 0.5
draw quad
todo(glsl) draw quad
probe all rgba (0.9, 0.6, 0.3, 0.5) 2

View File

@ -29,7 +29,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.1, 0.8, 0.5);
[pixel shader todo(sm<4)]
@ -79,16 +79,16 @@ float4 main() : sv_target
[test]
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.2, 0.6, 0.3) 1
uniform 0 float 0.4
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.6, 0.5, 0.6, 0.3) 1
uniform 0 float 0.6
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.6, 0.5, 0.4, 0.5) 1
uniform 0 float 0.8
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.8, 0.7, 0.4, 0.5) 1
[pixel shader todo(sm<4)]
@ -134,13 +134,13 @@ float4 main() : sv_target
[test]
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.2, 0.1, 0.2, 0.1) 1
uniform 0 float 0.5
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.5, 0.4, 1.0, 0.9) 1
uniform 0 float 0.9
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 0.9, 1.0, 0.6) 1
[pixel shader todo(sm<4)]
@ -181,7 +181,7 @@ float4 main() : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.4, 0.3, 0.3, 0.9) 1
[pixel shader todo(sm<4)]
@ -235,23 +235,23 @@ float4 main() : sv_target
[test]
uniform 0 float 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.2, 0.3, 0.3) 1
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.3, 0.3, 0.3) 1
uniform 0 float 0.3
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.5, 0.3, 0.3) 1
uniform 0 float 0.7
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.9, 0.7, 0.6) 1
uniform 0 float 0.9
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.4, 0.1, 0.7, 0.6) 1
[pixel shader todo(sm<4)]
@ -291,21 +291,21 @@ float4 main() : sv_target
uniform 0 float4 0.3 0.0 0.0 0.0
uniform 4 float4 0.0 0.0 0.0 0.0
uniform 8 float4 0.1 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.2, 0.6, 0.6) 1
uniform 4 float4 0.35 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.3, 0.6, 0.6) 1
uniform 8 float4 0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.5, 0.6, 0.6) 1
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.3, 0.5, 0.6, 0.6) 1
uniform 4 float4 2.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.4, 0.1, 0.6, 0.6) 1

View File

@ -176,7 +176,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader]
@ -200,7 +200,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.6, 0.7, 0)
[pixel shader]
@ -221,7 +221,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.6, 0.1, 0.5, 0)
% Recursion is forbidden.
@ -275,7 +275,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)
@ -293,7 +293,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier
@ -312,7 +312,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)
% Inline modifier used on entry point
@ -331,5 +331,5 @@ inline float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 6.0, 7.0)

View File

@ -18,7 +18,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe (10, 10) rgba (8.0, 8.0, 8.0, 8.0)
probe (11, 10) rgba (8.0, 8.0, 8.0, 8.0)
probe (12, 10) rgba (10.0, 10.0, 10.0, 10.0)

View File

@ -23,7 +23,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.2, 0.1)
@ -37,7 +37,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.1, 0.1, 0.0)
@ -55,7 +55,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.2, 0.1, 0.1)
@ -69,7 +69,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.1, 0.0, 0.0)
@ -83,7 +83,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.0, 0.5, 0.0)
@ -97,7 +97,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.4, 0.0, 0.4)
@ -113,5 +113,5 @@ float4 main() : sv_target
[test]
uniform 0 int4 1 0 0 0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.2, 0.1)

View File

@ -23,7 +23,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.1, 0.1, 0.0)
@ -37,7 +37,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.2, 0.1)
@ -55,7 +55,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.1, 0.0, 0.0)
@ -69,7 +69,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.2, 0.1, 0.1)
@ -97,7 +97,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.5, 0.0, 0.5)
@ -111,5 +111,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.4, 0.0, 0.4, 0.0)

View File

@ -28,7 +28,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 3.0, 2.0, 3.0)
[srv 1]
@ -53,5 +53,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 1.0, 2.0)

View File

@ -19,5 +19,5 @@ float4 main() : sv_target
[test]
uniform 0 float 10.0
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 10.0, 10.0, 10.0)

View File

@ -17,10 +17,10 @@ float4 main() : sv_target
[test]
uniform 0 float 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 2.0)
uniform 0 float 1.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-2.0, -2.0, -2.0, -2.0)
@ -43,10 +43,10 @@ float4 main() : sv_target
[test]
uniform 0 float 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 2.0)
uniform 0 float 1.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (20.0, 20.0, 20.0, 20.0)
@ -69,8 +69,8 @@ float4 main() : sv_target
[test]
uniform 0 float 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 4.0, 0.0, 0.0)
uniform 0 float 1.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 40.0, 0.0, 0.0)

View File

@ -6,7 +6,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1, 2, 3, 4)
@ -24,7 +24,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (4, 5, 6, 7)
@ -37,7 +37,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (40, 10, 20, 30)
@ -56,7 +56,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
@ -69,5 +69,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)

View File

@ -7,7 +7,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (50, 60, 70, 80)
@ -21,7 +21,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
% dxcompiler emits a nop shader which returns immediately.
if(sm<6) probe all rgba (5.0, 6.0, 7.0, 8.0)
@ -35,7 +35,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (7.0, 8.0, 9.0, 10.0)
@ -63,7 +63,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (318.0, 320.0, 322.0, 324.0)

View File

@ -9,7 +9,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (17, 18, 19, 20)
@ -57,7 +57,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (22, 23, 24, 25)

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)
@ -31,5 +31,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (71, 72, 73, 74)

View File

@ -6,7 +6,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 0)
@ -18,7 +18,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 0)
@ -30,7 +30,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)
@ -42,7 +42,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 31, 32)
@ -55,7 +55,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 31, 32)
@ -68,5 +68,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 31, 32)

View File

@ -7,7 +7,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2, 3, 3, 0)
@ -32,7 +32,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (7.2, 8.0, 7.2, 8.0)
@ -48,5 +48,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.2, 9.0, 5.2, 9.0)

View File

@ -6,7 +6,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1, 2, 3, 4)
@ -23,7 +23,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)
@ -52,5 +52,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)

View File

@ -6,7 +6,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
@ -18,7 +18,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
@ -31,7 +31,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0) 4
@ -44,7 +44,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.1, 1.1, 1.2, 2.1) 4
@ -56,7 +56,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (3.0, 250.0, 16.0, 4.2949673e+009) 4
@ -69,6 +69,6 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
if(sm<6) probe all rgba (-1294967296.0, 3000000000.0, 0.0, 0.0) 4
if(sm>=6) probe all rgba (3000000000.0, 3000000000.0, 0.0, 0.0) 4

View File

@ -25,7 +25,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.2, 0.2, 0.1)
@ -48,7 +48,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (31.1, 41.1, 51.1, 61.1) 1

View File

@ -11,7 +11,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)
@ -33,5 +33,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (61, 62, 63, 64)

View File

@ -22,7 +22,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (41, 42, 43, 44)
@ -52,7 +52,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (4311, 4312, 4313, 4314)
@ -80,5 +80,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (21, 22, 23, 24)

View File

@ -11,7 +11,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.3, 0.3, 0.4, 0.6)
[pixel shader fail(sm>=6)]
@ -27,7 +27,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.3, 0.3, 0.3, 0.4)
@ -47,5 +47,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.0, 0.3, 0.4)

View File

@ -13,23 +13,23 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3.14159274, 0.0, 0.0, 0.0) 128
uniform 0 float4 -0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.094441441, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.57072878, 0.0, 0.0, 0.0) 1024
uniform 0 float4 0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.04715133, 0.0, 0.0, 0.0) 512
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0) 128
[pixel shader]
@ -44,7 +44,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-31416.0, 0.0, 0.0, 0.0)
[require]
@ -52,15 +52,15 @@ shader model < 6.0
[test]
uniform 0 float4 -0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-10473.0, 0.0, 0.0, 0.0)
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 0.0, 0.0, 0.0)
uniform 0 float4 0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (10473.0, 0.0, 0.0, 0.0)
[require]
@ -88,7 +88,7 @@ probe all rgba (10472.0, 0.0, 0.0, 0.0) 4096
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (31416.0, 0.0, 0.0, 0.0)
@ -102,23 +102,23 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-0.785409629, 0.0, 0.0, 0.0) 512
uniform 0 float4 -0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-0.4636476, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.4636476, 0.0, 0.0, 0.0) 256
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.785409629, 0.0, 0.0, 0.0) 512
[pixel shader todo(sm<4)]
@ -133,64 +133,64 @@ float4 main() : sv_target
[test]
% Non-degenerate cases
uniform 0 float4 1.0 1.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.785385, 0.0, 0.0, 0.0) 512
uniform 0 float4 5.0 -5.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.356194, 0.0, 0.0, 0.0) 256
uniform 0 float4 -3.0 -3.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-2.356194, 0.0, 0.0, 0.0) 256
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.570796, 0.0, 0.0, 0.0) 256
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-1.570796, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 1.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 -1.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3.1415927, 0.0, 0.0, 0.0) 256
% Degenerate cases
uniform 0 float4 0.00001 0.00002 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.463647, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.00001 -0.00002 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.677945, 0.0, 0.0, 0.0) 256
uniform 0 float4 -0.00001 100000.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (-0.000000000099986595, 0.0, 0.0, 0.0) 2048
uniform 0 float4 10000000.0 0.00000001 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.570796, 0.0, 0.0, 0.0) 256
% Negative zero behavior should be to treat it the
% same as normal zero.
uniform 0 float4 1000000000.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.570796, 0.0, 0.0, 0.0) 256
uniform 0 float4 1000000000.0 -0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.570796, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 -1.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3.1415927, 0.0, 0.0, 0.0) 256
uniform 0 float4 -0.0 -1.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3.1415927, 0.0, 0.0, 0.0) 256

View File

@ -22,7 +22,7 @@ float4 main(bool face : sv_isfrontface) : sv_target
}
[test]
draw triangle strip 4
todo(glsl) draw triangle strip 4
probe all rgba (0.0, 1.0, 0.0, 1.0)
[vb 0]
@ -32,5 +32,5 @@ probe all rgba (0.0, 1.0, 0.0, 1.0)
2.0 2.0
[test]
draw triangle strip 4
todo(glsl) draw triangle strip 4
probe all rgba (1.0, 2.0, 1.0, 2.0)

View File

@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
uniform 4 float4 0.0 -10.0 10.0 100.0
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 0.00292968750, 4096.0, 6.33825300e+030) 2
@ -28,7 +28,7 @@ if(sm<4) uniform 0 float4 2 3 4 5
if(sm<4) uniform 4 float4 0 -10 10 100
if(sm>=4) uniform 0 int4 2 3 4 5
if(sm>=4) uniform 4 int4 0 -10 10 100
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 0.00292968750, 4096.0, 6.33825300e+030) 2
@ -43,7 +43,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (64.0, 64.0, 64.0, 40.0)

View File

@ -8,7 +8,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
draw quad
todo(glsl) draw quad
probe all rgba (7.34846926, 7.34846926, 7.34846926, 7.34846926) 1
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (5.38516474, 5.38516474, 5.38516474, 5.38516474) 1
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3.60555124, 3.60555124, 3.60555124, 3.60555124) 1
[pixel shader]
@ -47,7 +47,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 2.0)
[pixel shader]
@ -60,7 +60,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 2.0)
[pixel shader fail]

View File

@ -12,7 +12,7 @@ float4 main() : SV_TARGET
uniform 0 float4 2.0 3.0 4.0 5.0
uniform 4 float4 0.0 -10.0 10.0 100.0
uniform 8 float4 0.0 1.0 -1.0 0.75
draw quad
todo(glsl) draw quad
probe all rgba (2.0, -10.0, -2.0, 76.25)
@ -33,7 +33,7 @@ if(sm<4) uniform 8 float4 0 1 -1 1000000
if(sm>=4) uniform 0 int4 2 3 4 0
if(sm>=4) uniform 4 int4 0 -10 10 1000000
if(sm>=4) uniform 8 int4 0 1 -1 1000000
draw quad
todo(glsl) draw quad
probe all rgba (2.0, -10.0, -2.0, 1e12) 4
@ -49,7 +49,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (-6.0, -2.2, 4.48, 8.28) 1

View File

@ -8,17 +8,17 @@ float4 main() : sv_target
[test]
uniform 0 float4 -0.1 10.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 0.0, 0.0, 1.0)
[test]
uniform 0 float4 1.2 -0.1 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.2, 0.0, 1.0)
[test]
uniform 0 float4 1.2 2.0 3.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.2, 8.0, 1.0)
[pixel shader todo(sm<4)]
@ -31,7 +31,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.2 2.0 3.0 0.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (2.0, 2.4, 16.0, 2.0)
[pixel shader fail]

View File

@ -22,10 +22,10 @@ float4 main() : sv_target
[test]
uniform 0 uint 0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 0.0, 1.0, 0.0)
uniform 0 uint 1
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 1.0, 0.0)
[pixel shader fail]
@ -47,5 +47,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 0.0, 1.0, 0.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 2.0 4.0 5.0 0.4
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 2.32192802, -1.32192802) 1
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 10.0 100.0 1.0 0.1
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 0.0, -1.0) 1
[pixel shader]
@ -34,5 +34,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 3.0 10.0 1.0 0.1
draw quad
todo(glsl) draw quad
probe all rgba (1.0986123, 2.302585, 0.0, -2.302585) 2

View File

@ -8,7 +8,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -22,7 +22,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -35,7 +35,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -48,7 +48,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -61,7 +61,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -75,7 +75,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -88,7 +88,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -101,7 +101,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -114,7 +114,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -128,7 +128,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -141,7 +141,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -154,5 +154,5 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 1.0, 1.0)

View File

@ -18,7 +18,7 @@ float4 main() : sv_target
[test]
uniform 0 float 5.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (50.0, 50.0, 50.0, 50.0)
@ -41,7 +41,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (20.0, 20.0, 20.0, 20.0)
[pixel shader todo(sm<4)]
@ -70,7 +70,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (409.1, 409.1, 409.1, 409.1)
[pixel shader todo(sm<4)]
@ -100,7 +100,7 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (410.1, 410.1, 410.1, 410.1)
% loop attribute by itself
@ -118,7 +118,7 @@ float4 main() : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (10.0, 10.0, 10.0, 10.0)
[pixel shader todo(sm<4)]
@ -137,7 +137,7 @@ float4 main() : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (10.0, 10.0, 10.0, 10.0)
[pixel shader todo(sm<4)]
@ -156,7 +156,7 @@ float4 main() : sv_target
}
[test]
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (10.0, 10.0, 10.0, 10.0)
% unroll can't be used with fastopt or loop

View File

@ -17,7 +17,7 @@ uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
uniform 8 float4 0.1 0.3 0.0 0.0
uniform 12 float4 0.2 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.17, 0.39, 0.17, 0.39) 1
@ -40,7 +40,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
@ -61,7 +61,7 @@ uniform 0 float4 0.0 0.0 0.0 0.0
uniform 4 float4 0.0 0.0 0.0 0.0
uniform 8 float4 0.5 0.6 0.0 0.0
uniform 12 float4 0.7 0.8 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.6, 0.7, 0.8)
@ -90,7 +90,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
if(sm<6) probe all rgba (0.23, 0.34, 0.5, 0.5) 1
if(sm>=6) probe all rgba (0.17, 0.39, 0.5, 0.5) 1
@ -112,7 +112,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
@ -150,7 +150,7 @@ uniform 0 float4 0.3 0.4 0.0 0.0
uniform 4 float4 0.0 0.0 0.0 0.0
uniform 8 float4 0.0 0.0 0.0 0.0
uniform 12 float4 0.5 0.6 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.3, 0.4, 0.5, 0.6)
@ -174,7 +174,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
@ -202,7 +202,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.2 0.4 0.0 0.0
uniform 4 float4 0.3 0.5 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.3, 0.4, 0.5)
@ -222,7 +222,7 @@ uniform 0 float4 0.3 0.0 0.0 0.0
uniform 4 float4 0.4 0.0 0.0 0.0
uniform 8 float4 0.0 0.5 0.0 0.0
uniform 12 float4 0.0 0.6 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.3, 0.4, 0.5, 0.6)
% Compiler options
@ -246,7 +246,7 @@ uniform 0 float4 0.1 0.5 0.9 1.3
uniform 4 float4 0.2 0.6 1.0 1.4
uniform 8 float4 0.3 0.7 1.1 1.5
uniform 12 float4 0.4 0.8 1.2 1.6
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.3, 0.6, 0.7) 1
[require]
@ -268,7 +268,7 @@ uniform 0 float4 0.1 0.5 0.9 1.3
uniform 4 float4 0.2 0.6 1.0 1.4
uniform 8 float4 0.3 0.7 1.1 1.5
uniform 12 float4 0.4 0.8 1.2 1.6
draw quad
todo(glsl) draw quad
probe all rgba (0.2, 0.3, 0.6, 0.7) 1
[require]
@ -290,7 +290,7 @@ uniform 0 float4 0.1 0.5 0.9 1.3
uniform 4 float4 0.2 0.6 1.0 1.4
uniform 8 float4 0.3 0.7 1.1 1.5
uniform 12 float4 0.4 0.8 1.2 1.6
draw quad
todo(glsl) draw quad
probe all rgba (0.5, 0.9, 0.6, 1.0) 1
[require]
@ -318,7 +318,7 @@ uniform 16 float4 1.7 2.1 2.5 2.9
uniform 20 float4 1.8 2.2 2.6 3.0
uniform 24 float4 1.9 2.3 2.7 3.1
uniform 28 float4 2.0 2.4 2.8 3.2
draw quad
todo(glsl) draw quad
probe all rgba (0.3, 0.4, 2.5, 2.9) 1
[require]
@ -346,7 +346,7 @@ uniform 16 float4 1.7 2.1 2.5 2.9
uniform 20 float4 1.8 2.2 2.6 3.0
uniform 24 float4 1.9 2.3 2.7 3.1
uniform 28 float4 2.0 2.4 2.8 3.2
draw quad
todo(glsl) draw quad
probe all rgba (1.2, 1.6, 3.1, 3.2) 1
[require]
@ -366,5 +366,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.3, 0.2, 0.4) 1

View File

@ -11,7 +11,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.3 0.0 0.0
uniform 4 float4 0.2 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.3, 0.2, 0.4)
[pixel shader fail(sm<6)]

View File

@ -18,5 +18,5 @@ uniform 0 float4 0.1 0.2 0.0 0.0
uniform 4 float4 0.3 0.4 0.0 0.0
uniform 8 float4 0.1 0.3 0.0 0.0
uniform 12 float4 0.2 0.4 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.17, 0.39, 0.17, 0.39) 1

View File

@ -14,5 +14,5 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.5 0.3 0.2 0.7
uniform 4 float4 0.1 1.5 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (-12.43, 9.833333, 1.6, 35.0) 1

View File

@ -11,7 +11,7 @@ uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 13.0 14.0 15.0 16.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 10.0, 15.0)
[pixel shader]
@ -27,7 +27,7 @@ uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 13.0 14.0 15.0 16.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 10.0, 15.0)
[pixel shader]
@ -43,7 +43,7 @@ uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 13.0 14.0 15.0 16.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 5.0, 7.0, 12.0)
[pixel shader]
@ -58,7 +58,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 1.0 2.0 3.0 0.0
uniform 4 float4 5.0 6.0 7.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 3.0, 6.0, 7.0)
[pixel shader]
@ -74,7 +74,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 5.0, 7.0, 12.0)
@ -89,7 +89,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (30.0, 40.0, 5.0, 6.0)
@ -104,7 +104,7 @@ float4 main() : SV_TARGET
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (3.0, 4.0, 50.0, 60.0)
@ -120,7 +120,7 @@ float4 main() : sv_target
[test]
uniform 0 float 2
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (8, 9, 10, 11)
@ -136,5 +136,5 @@ float4 main() : sv_target
[test]
uniform 0 float 3
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (12, 13, 14, 15)

View File

@ -8,7 +8,7 @@ float4x1 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@ -18,7 +18,7 @@ row_major float1x4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[rtv 0]
@ -44,7 +44,7 @@ row_major float4x1 main() : sv_target
}
[test]
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe rtv 0 all r (1.0)
probe rtv 1 all r (2.0)
probe rtv 2 all r (3.0)
@ -57,7 +57,7 @@ float1x4 main() : sv_target
}
[test]
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe rtv 0 all r (1.0)
probe rtv 1 all r (2.0)
probe rtv 2 all r (3.0)
@ -78,7 +78,7 @@ void main(out float1x2 x : sv_target0, out float1x2 y : sv_target2)
}
[test]
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe rtv 0 all r (1.0)
probe rtv 1 all r (2.0)
probe rtv 2 all r (5.0)
@ -96,7 +96,7 @@ void main(out row_major float1x4 x : sv_target0, out float1x2 y : sv_target1)
}
[test]
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe rtv 0 all rgba (1.0, 2.0, 3.0, 4.0)
probe rtv 1 all r (5.0)
probe rtv 2 all r (6.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.7 -0.1 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.7, 2.1, 2.0, -1.0)
@ -24,7 +24,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.7 -0.1 0.4 0.8
draw quad
todo(glsl) draw quad
probe all rgba (0.7, 0.8, 0.7, 0.2)
@ -39,7 +39,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (6.0, 5.0, 4.0, 5.0)

View File

@ -17,7 +17,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (197.0, 218.0, 238.0, 257.0)
@ -36,7 +36,7 @@ shader model < 6.0
[test]
uniform 0 uint4 0 0 0 0
draw quad
todo(glsl) draw quad
probe all rgbaui (0x7fff, 0xffff, 0, 0)
[require]

View File

@ -11,7 +11,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (30.0, 70.0, 110.0, 150.0)
[pixel shader]
@ -27,7 +27,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (90.0, 100.0, 110.0, 120.0)
[pixel shader]
@ -43,7 +43,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (14.0, 38.0, 62.0, 86.0)
[pixel shader]
@ -59,7 +59,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (38.0, 44.0, 50.0, 56.0)
[pixel shader]
@ -74,7 +74,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (14.0, 32.0, 50.0, 0.0)
[pixel shader]
@ -89,7 +89,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (30.0, 36.0, 42.0, 0.0)
[pixel shader]
@ -105,7 +105,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (50.0, 60.0, 70.0, 80.0)
[pixel shader]
@ -121,7 +121,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (50.0, 60.0, 70.0, 80.0)
[pixel shader]
@ -137,7 +137,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 20.0, 30.0, 40.0)
[pixel shader]
@ -153,7 +153,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 50.0, 90.0, 130.0)
[pixel shader]
@ -169,7 +169,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 20.0, 30.0, 40.0)
[pixel shader]
@ -185,7 +185,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (10.0, 50.0, 90.0, 130.0)
[pixel shader]
@ -201,7 +201,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (90.0, 100.0, 110.0, 120.0)
[pixel shader]
@ -217,7 +217,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 10.0, 15.0, 20.0)
[pixel shader]
@ -233,7 +233,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2.0, 4.0, 6.0, 8.0)
[pixel shader]
@ -249,7 +249,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (30.0, 70.0, 110.0, 150.0)
[pixel shader]
@ -267,7 +267,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (83.0, 98.0, 113.0, 128.0)
[pixel shader]
@ -285,7 +285,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (78.0, 96.0, 114.0, 0.0)
@ -300,7 +300,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (20.0, 14.0, 56.0, 41.0)
@ -315,5 +315,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 11.0, 0.0, 0.0)

View File

@ -14,6 +14,6 @@ void main(out float4 o0 : sv_target0, out float4 o1 : sv_target1)
}
[test]
draw quad
todo(glsl) draw quad
probe rtv 0 all rgba (0.1, 0.2, 0.3, 0.4)
probe rtv 1 all rgba (0.5, 0.6, 0.7, 0.8)

View File

@ -21,5 +21,5 @@ uniform 8 float4 0.3 0.0 0.0 0.0
uniform 12 float4 0.4 0.0 0.0 0.0
uniform 16 float4 0.5 0.0 0.0 0.0
uniform 20 float4 0.6 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (0.4, 0.1, 0.6, 0.3)

View File

@ -23,7 +23,7 @@ float4 main(nointerpolation float4 t : texcoord) : sv_target
}
[test]
draw triangle list 3
todo(glsl) draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)
[vertex shader]
@ -50,7 +50,7 @@ float4 main(ps_input input) : sv_target
}
[test]
draw triangle list 3
todo(glsl) draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)
[vertex shader]
@ -77,7 +77,7 @@ float4 main(nointerpolation ps_input input) : sv_target
}
[test]
draw triangle list 3
todo(glsl) draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)
[vertex shader]
@ -104,7 +104,7 @@ float4 main(centroid ps_input input) : sv_target
}
[test]
draw triangle list 3
todo(glsl) draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)
[vertex shader]
@ -135,7 +135,7 @@ shader model >= 4.0
shader model < 6.0
[test]
draw triangle list 3
todo(glsl) draw triangle list 3
probe all rgba (0.0, 1.0, 0.0, 1.0)
% Centroid for SM 6.

View File

@ -12,16 +12,16 @@ uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 0 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
uniform 12 float4 1 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
uniform 12 float4 0 1 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
uniform 12 float4 1 1 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (9.0, 10.0, 11.0, 12.0)
@ -36,16 +36,16 @@ float4 main() : SV_TARGET
[test]
uniform 0 float 0
draw quad
todo(glsl) draw quad
probe all rgba (11.0, 11.0, 11.0, 11.0)
uniform 0 float 1
draw quad
todo(glsl) draw quad
probe all rgba (12.0, 12.0, 12.0, 12.0)
uniform 0 float 2
draw quad
todo(glsl) draw quad
probe all rgba (13.0, 13.0, 13.0, 13.0)
uniform 0 float 3
draw quad
todo(glsl) draw quad
probe all rgba (14.0, 14.0, 14.0, 14.0)
@ -61,7 +61,7 @@ float4 main() : sv_target
[test]
uniform 0 float 2.3
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (3, 3, 3, 3)
@ -77,16 +77,16 @@ float4 main() : SV_TARGET
[test]
uniform 0 float 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (21.0, 1.0, 24.0, 0.0)
uniform 0 float 1
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (22.0, 0.0, 23.0, 1.0)
uniform 0 float 2
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (23.0, 1.0, 22.0, 0.0)
uniform 0 float 3
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (24.0, 0.0, 21.0, 1.0)
@ -102,16 +102,16 @@ float4 main() : sv_target
[test]
uniform 0 float4 0 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
uniform 0 float4 1 0 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
uniform 0 float4 0 1 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
uniform 0 float4 1 1 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (9.0, 10.0, 11.0, 12.0)
@ -130,7 +130,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0 0 2.4 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 120.0, 90.0, 4.0)
@ -155,15 +155,15 @@ float4 main() : sv_target
[test]
uniform 0 int 0
uniform 1 int 0
draw quad
todo(glsl) draw quad
probe all rgba (100, 6, 7, 8)
uniform 0 int 2
uniform 1 int 2
draw quad
todo(glsl) draw quad
probe all rgba (5, 6, 100, 8)
uniform 0 int 1
uniform 1 int 3
draw quad
todo(glsl) draw quad
probe all rgba (5, 6, 7, 4)
@ -192,7 +192,7 @@ uniform 0 float4 1 2 3 4
uniform 4 float4 5 6 7 8
uniform 8 int 3
uniform 9 int 4
draw quad
todo(glsl) draw quad
probe all rgba (1126, 3344, 5566, 3788)
@ -212,7 +212,7 @@ float4 main() : sv_target
[test]
uniform 0 uint 1
uniform 1 uint 0x40a00000
draw quad
todo(glsl) draw quad
probe all rgba (1, 5, 3, 4)
@ -243,7 +243,7 @@ uniform 8 float 3.0
uniform 12 float 4.0
uniform 16 uint4 3 1 0 2
uniform 20 uint4 0 3 1 2
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
if(sm<4) todo probe all rgba (1.0, 1.0, 1.0, 1.0)
if(sm>=4 & sm<6) todo probe all rgba (4.0, 4.0, 4.0, 4.0)
if(sm>=6) probe all rgba (4.0, 3.0, 2.0, 1.0)

View File

@ -8,7 +8,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (0.272165537, 0.408248305, 0.544331074, 0.680413842) 2
[pixel shader]
@ -21,7 +21,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 0.0
todo(sm>=6) draw quad
todo(sm>=6 | glsl) draw quad
probe all rgba (0.371390700, 0.557086051, 0.742781401, 0.0) 1
[pixel shader]
@ -34,7 +34,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 0.0 0.0
todo(sm<4 | sm>=6) draw quad
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (0.554700196, 0.832050323, 0.0, 0.0) 1
[pixel shader]
@ -47,7 +47,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader]
@ -60,7 +60,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader fail]

View File

@ -6,7 +6,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (71.0, 72.0, 73.0, 75.0)
@ -29,5 +29,5 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 5.0)

View File

@ -6,7 +6,7 @@ vector main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@ -17,7 +17,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)
[pixel shader]
@ -28,7 +28,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 0.0)
[pixel shader fail]
@ -56,7 +56,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 8.0)
[pixel shader]
@ -68,7 +68,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (5.0, 6.0, 7.0, 0.0)
[pixel shader fail(sm<6)]

View File

@ -185,7 +185,7 @@ void main(uint2 id : sv_dispatchthreadid)
}
[test]
todo(sm>=6) dispatch 1 1 1
todo(sm>=6 | glsl) dispatch 1 1 1
probe uav 0 (0, 0) r (2.0)
probe uav 0 (0, 1) r (1.0)
probe uav 0 (1, 0) r (2.0)

View File

@ -19,7 +19,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 3.0, 0.0)
@ -45,7 +45,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 5.0, 0.0)
@ -66,5 +66,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 2.0, 5.0, 0.0)

View File

@ -46,7 +46,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (77.77, 77.77, 77.77, 77.77)
@ -73,7 +73,7 @@ float4 main(float4 pos : sv_position) : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
probe (1, 0) rgba (0.5, 0.7, 0.6, 0.8)
probe (0, 1) rgba (0.6, 0.5, 0.2, 0.1)
@ -111,7 +111,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (312, 312, 312, 111)
@ -134,7 +134,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (2132, 2132, 2132, 1111)
@ -202,7 +202,7 @@ float4 main() : sv_target
[test]
uniform 0 float 10.0
draw quad
todo(glsl) draw quad
probe (0, 0) rgba (11.0, 12.0, 13.0, 11.0)

View File

@ -8,7 +8,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.4 0.8 2.5 2.0
draw quad
todo(glsl) draw quad
probe all rgba (0.512, 0.101192884, 0.64, 0.25) 4
@ -23,7 +23,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 32.0, 256.0, 125.0) 2

View File

@ -9,7 +9,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.3 0.4
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader fail(sm>=6)]
@ -23,7 +23,7 @@ precise main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.3 0.4
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader]
@ -37,5 +37,5 @@ float4 main() : sv_target
[test]
uniform 0 float4 0.1 0.2 0.3 0.4
draw quad
todo(glsl) draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)

Some files were not shown because too many files have changed in this diff Show More