Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Unreleased

- Added `AlphaMode` to allow configuring transparency and zero-copy on Web. Set it with `Surface::configure`.
- Added `Surface::supports_alpha_mode` for querying supported alpha modes.
- Added `PixelFormat` enum.
- Added `PixelFormat` enum. Set it with `Surface::configure`.
- Added `Surface::supported_pixel_formats` for querying supported alpha modes and pixel formats.
- Added `Buffer::pixels()` for accessing the buffer's pixel data.
- Added `Buffer::pixel_rows()` for iterating over rows of the buffer data.
- Added `Buffer::pixels_iter()` for iterating over each pixel with its associated `x`/`y` coordinate.
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ glam = "0.32.0"
rand = "0.10.0"
# Disable unnecessary formats.
image = { version = "0.25.0", default-features = false, features = ["jpeg"] }
# For f16 support. TODO: Use standard library's f16 once stable:
# https://github.com/rust-lang/rust/issues/116909
half = "2.7.1"

[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
# Use rayon in raytracing example on non-web platforms.
Expand Down
Loading
Loading