vkd3d-shader/hlsl: Remove conditional branching when condition is a compile time constant.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2023-09-27 19:17:40 +02:00
committed by Alexandre Julliard
parent f3389789b2
commit 7c378cc6f9
Notes: Alexandre Julliard 2023-10-05 22:37:46 +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/375
3 changed files with 39 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ float4 main() : sv_target
}
[pixel shader todo]
[pixel shader]
// This is allowed in 10.0.10011.16384 but not in 9.29.952.3111
static Texture2D tex;
sampler sam;
@@ -177,7 +177,7 @@ size (1, 1)
0.5
[pixel shader todo]
[pixel shader]
// This is allowed in 10.0.10011.16384 but not in 9.29.952.3111
static RWTexture2D<float> tex;