Skip to content

Add convience methods for bytemuck conversions #120

@ripytide

Description

@ripytide

From #64

Convenience methods for bytemuck? slice.as_rgba() vs bytemuck::cast_slice::<Rgba<u8>>(slice)

Personally, I don't think using bytemuck is that bad as it is more explicit and ideally you would only be doing bit-casts when transferring data in or out of a strongly typed rust system so it shouldn't come up that often.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions