tests/hlsl: Attempt to deduce the data type of unspecified type texture data.

Try parsing first as integer, and if the parse stops at a decimal separator, parse as float.
This commit is contained in:
Victor Chiletto
2025-03-17 19:23:09 -03:00
committed by Henri Verbeet
parent 7b21183f45
commit cc9f4ac587
Notes: Henri Verbeet 2025-04-08 20:55:13 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1428
7 changed files with 28 additions and 21 deletions

View File

@@ -10,8 +10,8 @@ address clamp clamp clamp
[srv 0]
size (2d, 2, 2)
1 1 0 1 0 1 1 1
1 0 0 1 1 0 1 1
1.0 1.0 0.0 1.0 0.0 1.0 1.0 1.0
1.0 0.0 0.0 1.0 1.0 0.0 1.0 1.0
[vertex shader]
float4 main(out float2 t : texcoord) : sv_position