void QueueCommand <T>(T command) where T : unmanaged, IDSPCommand { if (!m_Commands.Valid) { throw new InvalidOperationException("Command buffer has not been initialized"); } var queueCommand = m_Graph.AllocateCommand <T>(); *queueCommand = command; m_Commands.Add((IntPtr)queueCommand); }