Skip to content

Add ImageData type#1

Draft
nicoburns wants to merge 4 commits intomainfrom
misc-changes-for-initial-release
Draft

Add ImageData type#1
nicoburns wants to merge 4 commits intomainfrom
misc-changes-for-initial-release

Conversation

@nicoburns
Copy link
Copy Markdown
Contributor

@nicoburns nicoburns commented Aug 1, 2025

Changes:

@nicoburns nicoburns force-pushed the misc-changes-for-initial-release branch 3 times, most recently from 37ac030 to a74723b Compare August 1, 2025 16:19
Comment thread .github/workflows/ci.yml
Comment thread src/image.rs
pub enum ImageFormat {
/// 32-bit RGBA with 8-bit channels.
Rgba8 = 0,
// NOTICE: If a new value is added, be sure to update the bytemuck CheckedBitPattern impl.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an indication that we would need that bytemuck stuff here as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, missed this because it's in a separate file in peniko

Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
@nicoburns nicoburns force-pushed the misc-changes-for-initial-release branch 3 times, most recently from 711bd55 to d52b103 Compare August 2, 2025 01:02
Signed-off-by: Nico Burns <nico@nicoburns.com>
@nicoburns nicoburns force-pushed the misc-changes-for-initial-release branch from d52b103 to 050b764 Compare August 2, 2025 01:03
Signed-off-by: Nico Burns <nico@nicoburns.com>
Copy link
Copy Markdown
Collaborator

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the copyright changes are correct ... and you left out the tests from the bytemuck support.

@nicoburns nicoburns changed the title Misc changes for initial release Add ImageData type Sep 4, 2025
@nicoburns nicoburns marked this pull request as draft September 4, 2025 12:09
@DJMcNab
Copy link
Copy Markdown
Member

DJMcNab commented Sep 5, 2025

My current thinking here is that this type actually still belongs in Peniko. See some of the reasons at #linebender > raw_resource_handle crate extraction from Peniko @ 💬.

I think this is the consensus position at the moment. There's a lot more interesting discussion further down that thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants