tests: Add a test for the partial precision destination modifier.

This commit is contained in:
Giovanni Mascellani
2025-06-06 12:33:42 +02:00
committed by Henri Verbeet
parent 4da83fe83b
commit 46fac7f264
Notes: Henri Verbeet 2025-06-19 20:51:40 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1551
2 changed files with 40 additions and 0 deletions

View File

@@ -1722,6 +1722,13 @@ static ID3D10Blob *parse_hex(const char *source)
if (isspace(c))
continue;
if (c == '%')
{
while (source[i] != '\n')
++i;
continue;
}
if ('0' <= c && c <= '9')
value = 16 * value + (c - '0');
else if ('a' <= c && c <= 'f')