pub enum SwapchainFormat {
Bgra8Unorm,
Rgba8Unorm,
Rgba16Float,
Depth32Float,
}Expand description
Color format for pixel data stored in the swapchain surface.
Variants§
Bgra8Unorm
32-bit BGRA unsigned normalized (standard Windows DXGI and macOS Metal format).
Rgba8Unorm
32-bit RGBA unsigned normalized (standard Wayland / Vulkan format).
Rgba16Float
64-bit HDR half-precision floating point.
Depth32Float
32-bit floating-point depth buffer format.
Implementations§
Trait Implementations§
Source§impl Clone for SwapchainFormat
impl Clone for SwapchainFormat
Source§fn clone(&self) -> SwapchainFormat
fn clone(&self) -> SwapchainFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SwapchainFormat
Source§impl Debug for SwapchainFormat
impl Debug for SwapchainFormat
Source§impl Default for SwapchainFormat
impl Default for SwapchainFormat
Source§fn default() -> SwapchainFormat
fn default() -> SwapchainFormat
Returns the “default value” for a type. Read more
impl Eq for SwapchainFormat
Source§impl Hash for SwapchainFormat
impl Hash for SwapchainFormat
Source§impl PartialEq for SwapchainFormat
impl PartialEq for SwapchainFormat
impl StructuralPartialEq for SwapchainFormat
Auto Trait Implementations§
impl Forget for SwapchainFormat
impl Freeze for SwapchainFormat
impl Move for SwapchainFormat
impl RefUnwindSafe for SwapchainFormat
impl Send for SwapchainFormat
impl Sync for SwapchainFormat
impl Unpin for SwapchainFormat
impl UnsafeUnpin for SwapchainFormat
impl UnwindSafe for SwapchainFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.