vkd3d-shader/glsl: Implement VSIR_OP_UDIV_SIMPLE.

This commit is contained in:
Henri Verbeet
2025-08-08 15:31:22 +02:00
parent 86656b7544
commit d30c992039
Notes: Henri Verbeet 2025-08-28 20:32:38 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1696
3 changed files with 9 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 5.0 16.0 0.0 0.0
todo(glsl | msl) draw quad
todo(msl) draw quad
probe (0, 0) rgba (21.0, -11.0, 80.0, 0.0)
[pixel shader]
@@ -40,7 +40,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 42.0 5.0 0.0 0.0
todo(glsl | msl) draw quad
todo(msl) draw quad
probe (0, 0) rgba (8.0, -8.0, -8.0, 8.0)
[pixel shader]
@@ -70,7 +70,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 45.0 5.0 0.0 0.0
todo(glsl | msl) draw quad
todo(msl) draw quad
probe (0, 0) rgba (9.0, -9.0, -9.0, 9.0)
[pixel shader]
@@ -150,7 +150,7 @@ float4 main() : sv_target
[test]
uniform 0 float 999.0
todo(glsl | msl) draw quad
todo(msl) draw quad
if(sm<4) probe (0, 0) rgba(16798, -16798, -16798, 16798)
if(sm>=4) probe (0, 0) rgba(16799, -16799, -16799, 16799)
@@ -167,7 +167,7 @@ float4 main() : sv_target
[test]
uniform 0 float 999.0
todo(glsl | msl) draw quad
todo(msl) draw quad
probe (0, 0) rgba(16798, -16798, -16798, 16798)
[require]