public ImGuiRenderer(ID3D11Device device, ID3D11DeviceContext deviceContext) { this.device = device; this.deviceContext = deviceContext; device.AddRef(); deviceContext.AddRef(); var io = ImGui.GetIO(); io.BackendFlags |= ImGuiBackendFlags.RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. CreateDeviceObjects(); }