Initalised vulkan for rendering bar some validation errors Added core types, platform detection and util macros
16 lines
342 B
C
16 lines
342 B
C
#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_
|