using System.Runtime.InteropServices; namespace AcDream.App.Rendering.Wb; /// /// Layout matches what glMultiDrawElementsIndirect expects. /// Total size 20 bytes; arrays are typically uploaded with stride = sizeof(this). /// [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct DrawElementsIndirectCommand { public uint Count; // index count for this draw public uint InstanceCount; // number of instances public uint FirstIndex; // offset into IBO, in indices public int BaseVertex; // vertex offset into VBO public uint BaseInstance; // first instance ID (offsets per-instance attribs / SSBO read) }