vkd3d-shader/hlsl: Parse 'centroid' and 'noperspective' modifiers.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2023-09-21 15:11:26 +02:00
committed by Alexandre Julliard
parent 4b8a4809d1
commit de860c3cbf
Notes: Alexandre Julliard 2023-10-09 23:10:36 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/358
5 changed files with 21 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ void main(uint id : sv_vertexid, inout ps_input input, out float4 pos : sv_posit
pos = float4(coords * float2(2, -2) + float2(-1, 1), 0, 1);
}
[pixel shader todo]
[pixel shader]
struct ps_input
{
nointerpolation float4 t : texcoord;
@@ -104,7 +104,7 @@ float4 main(centroid ps_input input) : sv_target
}
[test]
todo draw triangle list 3
draw triangle list 3
todo probe all rgba (0.0, 1.0, 0.0, 1.0)
[vertex shader]
@@ -146,7 +146,7 @@ void main(uint id : sv_vertexid, inout ps_input input, out float4 pos : sv_posit
pos = float4(coords * float2(2, -2) + float2(-1, 1), 0, 1);
}
[vertex shader todo]
[vertex shader]
struct ps_input
{
nointerpolation float4 t : texcoord;