Skip to content

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Sep 29, 2025

.map(|pixel| {
let rgba: [u8; 4] = match brush.image.format {
peniko::ImageFormat::Rgba8 => pixel.try_into().unwrap(),
peniko::ImageFormat::Bgra8 => [pixel[2], pixel[1], pixel[0], pixel[3]],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this stuff is still not handled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should just port unimplemented for now in renderer and then implement it in follow up rather than in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually we only need to deal with image alpha (on sample I suppose). BGRA and premultiply are props of ImageData that vello_cpu does not use.

f
Signed-off-by: sagudev <[email protected]>
@LaurenzV
Copy link
Contributor

Thanks a lot, that looks reasonable to me. Assuming that we can get CI to pass, I would be fine merging the peniko change.

Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
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.

2 participants