This commit is contained in:
Krzosa Karol
2023-03-29 08:14:36 +02:00
parent 1c5f6731a4
commit 7da3e27c05
4 changed files with 23 additions and 40 deletions

View File

@@ -7,9 +7,6 @@ PushStruct :: (a: *MA.Arena, $Type): *Type
return result
*/
Color :: struct ;; r: F32; g: F32; b: F32; a: F32
AlmostLinearToSRGB :: (a: Color): Color;; return {asd(a.r), asd(a.g), asd(a.b), a.a}
PushStruct :: (a: *MA.Arena, type: Type): *void
ti := GetTypeInfo(type)
result := MA.PushSize(a, ti.size->U64)