[][src]Struct dxplr::d3d12::ResourceDesc

pub struct ResourceDesc<D, W, H, F, L> {
    pub dimension: D,
    pub alignment: u64,
    pub width: W,
    pub height: H,
    pub depth_or_array_size: u16,
    pub mip_levels: u16,
    pub format: F,
    pub sample_desc: SampleDesc,
    pub layout: L,
    pub flags: Option<ResourceFlags>,
}

Fields

dimension: Dalignment: u64width: Wheight: Hdepth_or_array_size: u16mip_levels: u16format: Fsample_desc: SampleDesclayout: Lflags: Option<ResourceFlags>

Methods

impl ResourceDesc<(), (), (), (), ()>[src]

pub fn new() -> Self[src]

impl<D, W, H, F, L> ResourceDesc<D, W, H, F, L>[src]

pub fn dimension(
    self,
    dimension: ResourceDimension
) -> ResourceDesc<ResourceDimension, W, H, F, L>
[src]

pub fn alignment(self, alignment: u64) -> Self[src]

pub fn width(self, width: u64) -> ResourceDesc<D, u64, H, F, L>[src]

pub fn height(self, height: u32) -> ResourceDesc<D, W, u32, F, L>[src]

pub fn depth_or_array_size(self, size: u16) -> Self[src]

pub fn mip_levels(self, mip_levels: u16) -> Self[src]

pub fn format(self, format: Format) -> ResourceDesc<D, W, H, Format, L>[src]

pub fn sample_desc(self, desc: SampleDesc) -> Self[src]

pub fn layout(
    self,
    layout: TextureLayout
) -> ResourceDesc<D, W, H, F, TextureLayout>
[src]

pub fn flags(self, flags: ResourceFlags) -> Self[src]

Trait Implementations

impl<D: Clone, W: Clone, H: Clone, F: Clone, L: Clone> Clone for ResourceDesc<D, W, H, F, L>[src]

impl<D: Debug, W: Debug, H: Debug, F: Debug, L: Debug> Debug for ResourceDesc<D, W, H, F, L>[src]

impl From<D3D12_RESOURCE_DESC> for ResourceDesc<ResourceDimension, u64, u32, Format, TextureLayout>[src]

Auto Trait Implementations

impl<D, W, H, F, L> RefUnwindSafe for ResourceDesc<D, W, H, F, L> where
    D: RefUnwindSafe,
    F: RefUnwindSafe,
    H: RefUnwindSafe,
    L: RefUnwindSafe,
    W: RefUnwindSafe

impl<D, W, H, F, L> Send for ResourceDesc<D, W, H, F, L> where
    D: Send,
    F: Send,
    H: Send,
    L: Send,
    W: Send

impl<D, W, H, F, L> Sync for ResourceDesc<D, W, H, F, L> where
    D: Sync,
    F: Sync,
    H: Sync,
    L: Sync,
    W: Sync

impl<D, W, H, F, L> Unpin for ResourceDesc<D, W, H, F, L> where
    D: Unpin,
    F: Unpin,
    H: Unpin,
    L: Unpin,
    W: Unpin

impl<D, W, H, F, L> UnwindSafe for ResourceDesc<D, W, H, F, L> where
    D: UnwindSafe,
    F: UnwindSafe,
    H: UnwindSafe,
    L: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.