vkd3d-shader: Explicitly set indices for the numeric type names array.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-08-29 03:24:21 +02:00 committed by Henri Verbeet
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

View File

@ -3990,12 +3990,12 @@ static void declare_predefined_types(struct hlsl_ctx *ctx)
static const char * const names[] = static const char * const names[] =
{ {
"float", [HLSL_TYPE_FLOAT] = "float",
"half", [HLSL_TYPE_HALF] = "half",
"double", [HLSL_TYPE_DOUBLE] = "double",
"int", [HLSL_TYPE_INT] = "int",
"uint", [HLSL_TYPE_UINT] = "uint",
"bool", [HLSL_TYPE_BOOL] = "bool",
}; };
static const char *const variants_float[] = {"min10float", "min16float"}; static const char *const variants_float[] = {"min10float", "min16float"};