[Core] Replace generated arrays with macro declarations, align cache lines to 64 bytes (#235)

This commit is contained in:
Nic Barker 2025-01-29 17:14:01 +13:00 committed by GitHub
parent e9f2e6c4f1
commit 1bcf256e4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 308 additions and 1028 deletions

View file

@ -13,7 +13,9 @@ int main(void) {
Clay_Arena clayMemory = Clay_CreateArenaWithCapacityAndMemory(totalMemorySize, (char *)malloc(totalMemorySize));
Clay_Initialize(clayMemory, Clay_Dimensions {1024,768}, Clay_ErrorHandler { HandleClayErrors });
Clay_BeginLayout();
CLAY(CLAY_RECTANGLE({ .color = {255,255,255,0} }), CLAY_LAYOUT(layoutElement)) {}
CLAY(CLAY_RECTANGLE({ .color = {255,255,255,0} }), CLAY_LAYOUT(layoutElement)) {
CLAY_TEXT(CLAY_STRING(""), CLAY_TEXT_CONFIG({ .fontId = 0 }));
}
Clay_EndLayout();
return 0;
}