From f10abf4a18a816f358380918baab21d2dff756d8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 5 Feb 2025 10:57:28 +0900 Subject: [PATCH] [qfcc] Check for uniform arrays for UniformConstant Another one bites the dust (still more fragment shader issues, though). --- tools/qfcc/source/target_spirv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/target_spirv.c b/tools/qfcc/source/target_spirv.c index e63922b52..b5e4cfa4e 100644 --- a/tools/qfcc/source/target_spirv.c +++ b/tools/qfcc/source/target_spirv.c @@ -943,6 +943,9 @@ spirv_storage_class (unsigned storage, const type_t *type) if (is_reference (type)) { type = dereference_type (type); } + if (is_array (type)) { + type = dereference_type (type); + } if (is_handle (type)) { sc = SpvStorageClassUniformConstant; }