[−][src]Struct dxplr::d3d12::ResourceDesc
Fields
dimension: D
alignment: u64
width: W
height: H
depth_or_array_size: u16
mip_levels: u16
format: F
sample_desc: SampleDesc
layout: L
flags: Option<ResourceFlags>
Methods
impl ResourceDesc<(), (), (), (), ()>
[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]
self,
dimension: ResourceDimension
) -> ResourceDesc<ResourceDimension, W, H, F, L>
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]
self,
layout: TextureLayout
) -> ResourceDesc<D, W, H, F, TextureLayout>
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]
fn clone(&self) -> ResourceDesc<D, W, H, F, L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(
src: D3D12_RESOURCE_DESC
) -> ResourceDesc<ResourceDimension, u64, u32, Format, TextureLayout>
[src]
src: D3D12_RESOURCE_DESC
) -> ResourceDesc<ResourceDimension, u64, u32, Format, TextureLayout>
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,
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,
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,
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,
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,
D: UnwindSafe,
F: UnwindSafe,
H: UnwindSafe,
L: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,