Skip to content

Commit

Permalink
Remove the "The layout Struct..." warning in code generation (#3771)
Browse files Browse the repository at this point in the history
* Remove warning in code generation as no one is looking at this warning

* Fix lint
  • Loading branch information
HarelM authored Mar 1, 2024
1 parent 7a7cc77 commit fc97623
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/generate-struct-arrays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fc97623

Please sign in to comment.