IssuePluginEvent(PluginEntry.Event pluginEvent, System.IntPtr ptr) { if (_commandBuffer == null) { _commandBuffer = new CommandBuffer(); } _commandBuffer.IssuePluginEventAndData( PluginEntry.GetRenderEventFunc(), (int)pluginEvent, ptr ); Graphics.ExecuteCommandBuffer(_commandBuffer); _commandBuffer.Clear(); }