-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature request: split PixmapMut into ranges of scan lines #118
Comments
Pr0methean
changed the title
Feature request: mutably borrow ranges of scan lines separately
Feature request: split PixmapMut into ranges of scan lines
Apr 1, 2024
Can you illustrate what you want with some code? |
I'd like to turn this:
into this:
|
So you basically want a wrapper for |
Yeah, that's the idea.
…On Tue, Apr 2, 2024, 05:04 Yevhenii Reizner ***@***.***> wrote:
So you basically want a wrapper for slice::split_at_mut? It might be
doable, but would take a while to implement.
For now you can do it on your side.
—
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF3NBNYLWVJVERPB2IT2JTY3KNDDAVCNFSM6AAAAABFSAW7B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRHA3DAOJXHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've managed to do it on my end, but it's an ugly solution because variables used from inside a JoinSet have to be
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a task that creates a vertical stack of animation frames, where each frame is rendered separately. If I had a separate PixmapMut for each frame, then I'd be able to render the frames in parallel without needing any synchronization. And since a range of scan lines is a contiguous range of bytes, this should be feasible with the existing PixmapMut type.
The text was updated successfully, but these errors were encountered: