public void DrawLine(Vector3 start, Vector3 destination, Color4 lineColor) { if (!m_isValid) { throw new SeeingSharpGraphicsException($"This {nameof(WirePainter)} is only valid in the rendering pass that created it!"); } // Load and render the given line using (D3D11.Buffer lineBuffer = GraphicsHelper.CreateImmutableVertexBuffer(m_renderState.Device, new Vector3[] { start, destination })) { m_renderResources.RenderLines( m_renderState, m_worldViewPojCreator.Value, lineColor, lineBuffer, 2); } }