mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Make a string array const.
This commit is contained in:
parent
09cda98deb
commit
1514755043
Notes:
Alexandre Julliard
2023-04-06 22:23:49 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/149
@ -2816,7 +2816,7 @@ static void allocate_temp_registers(struct hlsl_ctx *ctx, struct hlsl_ir_functio
|
||||
|
||||
static void allocate_semantic_register(struct hlsl_ctx *ctx, struct hlsl_ir_var *var, unsigned int *counter, bool output)
|
||||
{
|
||||
static const char *shader_names[] =
|
||||
static const char *const shader_names[] =
|
||||
{
|
||||
[VKD3D_SHADER_TYPE_PIXEL] = "Pixel",
|
||||
[VKD3D_SHADER_TYPE_VERTEX] = "Vertex",
|
||||
|
Loading…
Reference in New Issue
Block a user