26 lines
833 B
C
26 lines
833 B
C
////////////////////////////////
|
|
//~ Rect types
|
|
|
|
Struct(UI_RectSig)
|
|
{
|
|
/* ----------------------------------------------------- */
|
|
Mat4x4 projection; /* 16 consts */
|
|
/* ----------------------------------------------------- */
|
|
StructuredBufferRid instances; /* 01 consts */
|
|
u32 _pad0; /* 01 consts (padding) */
|
|
u32 _pad1; /* 01 consts (padding) */
|
|
u32 _pad2; /* 01 consts (padding) */
|
|
/* ----------------------------------------------------- */
|
|
};
|
|
AssertRootConst(UI_RectSig, 20);
|
|
|
|
Struct(UI_RectInstance)
|
|
{
|
|
Vec2 p0;
|
|
Vec2 p1;
|
|
u32 tint_srgb;
|
|
};
|
|
#define UI_DefaultRectInstance (UI_RectInstance) { \
|
|
0 \
|
|
}
|