mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Explicitly set indices for the numeric type names array.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
2ac7f650a1
commit
b5c5783293
Notes:
Henri Verbeet
2024-09-23 15:55:06 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1025
@ -3990,12 +3990,12 @@ static void declare_predefined_types(struct hlsl_ctx *ctx)
|
||||
|
||||
static const char * const names[] =
|
||||
{
|
||||
"float",
|
||||
"half",
|
||||
"double",
|
||||
"int",
|
||||
"uint",
|
||||
"bool",
|
||||
[HLSL_TYPE_FLOAT] = "float",
|
||||
[HLSL_TYPE_HALF] = "half",
|
||||
[HLSL_TYPE_DOUBLE] = "double",
|
||||
[HLSL_TYPE_INT] = "int",
|
||||
[HLSL_TYPE_UINT] = "uint",
|
||||
[HLSL_TYPE_BOOL] = "bool",
|
||||
};
|
||||
|
||||
static const char *const variants_float[] = {"min10float", "min16float"};
|
||||
|
Loading…
x
Reference in New Issue
Block a user