Skip to content

Conversation

@phideg
Copy link
Contributor

@phideg phideg commented Dec 31, 2025

Issue

CompositeAlphaMode::PostMultiplied was used unconditionally to configure a wgpu::Surface.

Requesting an unsupported alpha mode prevents applications from initializing the surface on some platforms/adapters and produces following runtime validation error.

Requested alpha mode `PostMultiplied` is not in the list of supported alpha modes: [...]

Solution

Query surface.get_capabilities(&adapter).alpha_modes and choose a supported CompositeAlphaMode from this preference order:

  • PostMultiplied
  • PreMultiplied
  • Opaque (fallback)

@bvssvni
Copy link
Member

bvssvni commented Jan 5, 2026

Merging.

@bvssvni bvssvni merged commit 2d657d5 into PistonDevelopers:master Jan 5, 2026
@bvssvni
Copy link
Member

bvssvni commented Jan 5, 2026

Thanks!

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