Skip to main content

SURFACE_FORMATS

Constant SURFACE_FORMATS 

Source
pub const SURFACE_FORMATS: [TextureFormat; 2];
Expand description

Every swapchain format select_surface_format will configure a surface with — a membership set, not a preference order.

Both are 8-bit-per-channel unorm formats the engine’s pipelines are built for, and the engine warms itself for whichever one the surface hands over, so neither is privileged. Which of the two a platform reporting both lands on is the surface’s own preference order — see select_surface_format.