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

@@ -28,7 +28,7 @@ void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos
[test]
if(sm<4) uniform 0 float 0.0
if(sm>=4) 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)
@@ -49,12 +49,12 @@ void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos
if(sm<4) uniform 0 float 3
if(sm<4) uniform 4 float 4
if(sm>=4) uniform 0 int4 3 4 0 0
draw quad
todo(glsl) draw quad
probe all rgba (0.0, 1.0, 0.0, 1.0)
if(sm<4) uniform 0 float -2
if(sm<4) uniform 4 float -2
if(sm>=4) uniform 0 int4 -2 -2 0 0
draw quad
todo(glsl) draw quad
probe all rgba (1.0, 0.0, 0.0, 1.0)
@@ -75,12 +75,12 @@ void main(out float4 res : COLOR1, in float4 pos : position, out float4 out_pos
if(sm<4) uniform 0 float 0
if(sm<4) uniform 4 float 2
if(sm>=4) uniform 0 int4 0 2 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.0, 1.0, 0.0, 1.0)
if(sm<4) uniform 0 float -2
if(sm<4) uniform 4 float 8
if(sm>=4) uniform 0 int4 -2 8 0 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 1.0)
@@ -103,11 +103,11 @@ if(sm<4) uniform 0 float 0
if(sm<4) uniform 4 float 100
if(sm<4) uniform 8 float 200
if(sm>=4) uniform 0 int4 0 100 200 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.2, 0.2, 0.2, 0.2)
if(sm<4) uniform 0 float -4
if(sm<4) uniform 4 float 100
if(sm<4) uniform 8 float 200
if(sm>=4) uniform 0 int4 -4 100 200 0
todo(sm<4) draw quad
todo(sm<4 | glsl) draw quad
probe all rgba (0.1, 0.1, 0.1, 0.1)