Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate RenderingDeviceDriver's VectorView into Span. #100338

Closed
wants to merge 2 commits into from

Conversation

Ivorforce
Copy link
Member

@Ivorforce Ivorforce commented Dec 12, 2024

Depends on, and includes, #100293. Draft until it is finalized and merged.

This removes RenderingDeviceDriver's own VectorView struct in favour of core's Span.

It may have been somewhat easier to merge the two, had VectorView not chosen to utilize implicit conversions. Implicit conversions will break your neck because you will sooner or later run into ambiguous calls and / or unwanted conversions. Better to address it now than later. I had tried to do it with Span as well, but very soon ran into issues because of overload clashes in String.

Other than that, the migration was fairly uneventful.

@Ivorforce
Copy link
Member Author

Closing for now since it may actually make sense to allow implicit conversions just this once. May revisit the idea after the Span PR is actually merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants