pub enum DxgiDuplicationFormat {
Rgba16F,
Rgb10A2,
Rgb10XrA2,
Rgba8,
Rgba8Srgb,
Bgra8,
Bgra8Srgb,
}展开描述
支持的 DXGI 重复(duplication)格式。
变体§
Rgba16F
16 位浮点 RGBA 格式。
Rgb10A2
10 位 RGB 加 2 位 alpha 格式。
Rgb10XrA2
10 位 RGB 加 2 位 alpha 格式(偏置)。
Rgba8
8 位 RGBA 格式。
Rgba8Srgb
8 位 RGBA 格式(sRGB)。
Bgra8
8 位 BGRA 格式。
Bgra8Srgb
8 位 BGRA 格式(sRGB)。
Trait 实现§
Source§impl Clone for DxgiDuplicationFormat
impl Clone for DxgiDuplicationFormat
Source§fn clone(&self) -> DxgiDuplicationFormat
fn clone(&self) -> DxgiDuplicationFormat
返回该值的副本。阅读更多
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行复制赋值。阅读更多Source§impl Debug for DxgiDuplicationFormat
impl Debug for DxgiDuplicationFormat
Source§impl PartialEq for DxgiDuplicationFormat
impl PartialEq for DxgiDuplicationFormat
impl Copy for DxgiDuplicationFormat
impl Eq for DxgiDuplicationFormat
impl StructuralPartialEq for DxgiDuplicationFormat
自动 Trait 实现§
impl Freeze for DxgiDuplicationFormat
impl RefUnwindSafe for DxgiDuplicationFormat
impl Send for DxgiDuplicationFormat
impl Sync for DxgiDuplicationFormat
impl Unpin for DxgiDuplicationFormat
impl UnsafeUnpin for DxgiDuplicationFormat
impl UnwindSafe for DxgiDuplicationFormat
通用实现§
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
从拥有的值可变地借用。阅读更多
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
若
into_left 为 true,则将 self 转换为 Left 变体
(属于 Either<Self, Self>)。
否则将 self 转换为 Right 变体
(属于 Either<Self, Self>)。阅读更多Source§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
若
into_left(&self) 返回 true,则将 self 转换为 Left 变体
(属于 Either<Self, Self>)。
否则将 self 转换为 Right 变体
(属于 Either<Self, Self>)。阅读更多