public import includes; import std.stdio; import aliases; import core.memory; import p = platform; import r = renderer; import util; import core.simd; struct Floats { f32 r = 0.0, g = 0.0, b = 0.0, a = 0.0; } void main() { p.Window window = p.CreateWindow("Video Game", 1920, 1080); r.Renderer rd = r.Init(&window); scope(exit) r.Destroy(&rd); /* Vec4 f1 = Vec4(r: 2.0, a: 5.5); Vec4 f2; Vec4* f = &f1; asm { mov R8, f; movups XMM0, f1.r.offsetof[R8]; movups f2, XMM0; } writeln(f2); */ while (true) { p.HandleEvents(&window); if (window.close) break; r.Cycle(&rd); } }