Red screen?

Initalised vulkan for rendering bar some validation errors
Added core types, platform detection and util macros
This commit is contained in:
2025-10-03 20:04:40 +01:00
parent 50eb947811
commit 655964852c
8 changed files with 698 additions and 3 deletions

15
code/core/macros.h Normal file
View File

@@ -0,0 +1,15 @@
#if !defined(LD_CORE_MACROS_H_)
#define LD_CORE_MACROS_H_
#define ArraySize(x) (sizeof(x) / sizeof((x)[0]))
#define Min(a, b) ((a) < (b) ? (a) : (b))
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define _Glue(a, b) a##b
#define _Stringify(x) #x
#define Glue(a, b) _Glue(a, b)
#define Stringify(x) _Stringify(x)
#endif // LD_CORE_MACROS_H_