跳到主要内容

DxgiDuplicationFormat

搜索

枚举 DxgiDuplicationFormat 

Source
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

Source§

fn clone(&self) -> DxgiDuplicationFormat

返回该值的副本。阅读更多
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

source 执行复制赋值。阅读更多
Source§

impl Debug for DxgiDuplicationFormat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

使用给定的格式化器格式化该值。阅读更多
Source§

impl PartialEq for DxgiDuplicationFormat

Source§

fn eq(&self, other: &DxgiDuplicationFormat) -> bool

测试 selfother 是否相等,供 == 使用。
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

测试 !=。默认实现几乎总是足够的,除非有非常充分的理由,否则不应被重写。
Source§

impl Copy for DxgiDuplicationFormat

Source§

impl Eq for DxgiDuplicationFormat

Source§

impl StructuralPartialEq for DxgiDuplicationFormat

自动 Trait 实现§

通用实现§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

获取 selfTypeId阅读更多
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

从拥有的值不可变地借用。阅读更多
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

从拥有的值可变地借用。阅读更多
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬这是一个仅在 nightly 提供的实验性 API。(clone_to_uninit
selfdest 执行复制赋值。阅读更多
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

原样返回参数。

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

调用 U::from(self)

也就是说,此转换由 From<T> for U 的实现自行决定。

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

into_lefttrue,则将 self 转换为 Left 变体 (属于 Either<Self, Self>)。 否则将 self 转换为 Right 变体 (属于 Either<Self, Self>)。阅读更多
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

into_left(&self) 返回 true,则将 self 转换为 Left 变体 (属于 Either<Self, Self>)。 否则将 self 转换为 Right 变体 (属于 Either<Self, Self>)。阅读更多
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

指针的对齐方式。
Source§

type Init = T

初始化器的类型。
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

使用给定的初始化器初始化 a。阅读更多
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

解引用给定的指针。阅读更多
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

可变地解引用给定的指针。阅读更多
Source§

unsafe fn drop(ptr: usize)

丢弃给定指针指向的对象。阅读更多
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

获得所有权后得到的类型。
Source§

fn to_owned(&self) -> T

通过克隆等方式从借用数据创建拥有数据。阅读更多
Source§

fn clone_into(&self, target: &mut T)

使用借用数据(通常通过克隆)替换拥有数据。阅读更多
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

转换出错时返回的类型。
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

转换出错时返回的类型。
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。