vkd3d-shader/glsl: Implement VKD3DSIH_SQRT.

This commit is contained in:
Henri Verbeet
2024-05-02 01:39:25 +02:00
parent 5ad83a05ff
commit f0c8b4a3c5
Notes: Henri Verbeet 2024-09-26 17:49:23 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1117
5 changed files with 24 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
todo(glsl) draw quad
draw quad
probe (0, 0) 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
todo(glsl) draw quad
draw quad
probe (0, 0) 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 | glsl) draw quad
todo(sm<4) draw quad
probe (0, 0) 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
todo(glsl) draw quad
draw quad
probe (0, 0) 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
todo(glsl) draw quad
draw quad
probe (0, 0) rgba (2.0, 2.0, 2.0, 2.0)
[pixel shader fail]