From fc976239ba1236d9d7b29aee7af59a179bd06b86 Mon Sep 17 00:00:00 2001 From: Harel M Date: Fri, 1 Mar 2024 11:27:43 +0200 Subject: [PATCH] Remove the "The layout Struct..." warning in code generation (#3771) * Remove warning in code generation as no one is looking at this warning * Fix lint --- build/generate-struct-arrays.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/generate-struct-arrays.ts b/build/generate-struct-arrays.ts index 06562fa7a2..ab2dc0effb 100644 --- a/build/generate-struct-arrays.ts +++ b/build/generate-struct-arrays.ts @@ -111,8 +111,7 @@ function createStructArrayLayoutType({members, size, alignment}) { const key = `${members.map(m => `${m.components}${typeAbbreviations[m.type]}`).join('')}${size}`; const className = `StructArrayLayout${key}`; - // Layout alignment to 4 bytes boundaries can be an issue on some set of graphics cards. Particularly AMD. - if (size % 4 !== 0) { console.warn(`Warning: The layout ${className} is not aligned to 4-bytes boundaries.`); } + if (!layoutCache[key]) { layoutCache[key] = { className,