[PATCH vkd3d v3 14/14] vkd3d-shader/hlsl: Fix an array dimension declaration order.

Matteo Bruni mbruni at codeweavers.com
Fri Nov 5 13:35:58 CDT 2021


From: Joshua Ashton <joshua at froggi.es>

Signed-off-by: Joshua Ashton <joshua at froggi.es>
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
All the signoffs :D

 libs/vkd3d-shader/hlsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c
index c71eac3f..42ea7b38 100644
--- a/libs/vkd3d-shader/hlsl.c
+++ b/libs/vkd3d-shader/hlsl.c
@@ -915,7 +915,7 @@ struct vkd3d_string_buffer *hlsl_type_to_string(struct hlsl_ctx *ctx, const stru
 
         case HLSL_CLASS_OBJECT:
         {
-            static const char dimensions[5][HLSL_SAMPLER_DIM_MAX + 1] =
+            static const char dimensions[HLSL_SAMPLER_DIM_MAX + 1][5] =
             {
                 [HLSL_SAMPLER_DIM_1D] = "1D",
                 [HLSL_SAMPLER_DIM_2D] = "2D",
-- 
2.26.3




More information about the wine-devel mailing list