#[repr(C)]pub struct ResourceDescription {
pub type_: ResourceType,
pub format: SurfaceFormat,
pub width: u32,
pub height: u32,
pub depth: u32,
pub mipCount: u32,
pub flags: ResourceFlags,
}Expand description
A structure describing a resource.
Fields§
§type_: ResourceType< The type of the resource.
format: SurfaceFormat< The surface format.
width: u32< The width of the resource.
height: u32< The height of the resource.
depth: u32< The depth of the resource.
mipCount: u32< Number of mips (or 0 for full mipchain).
flags: ResourceFlags< A set of
Trait Implementations§
Source§impl Clone for ResourceDescription
impl Clone for ResourceDescription
Source§fn clone(&self) -> ResourceDescription
fn clone(&self) -> ResourceDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceDescription
impl Debug for ResourceDescription
Source§impl Default for ResourceDescription
impl Default for ResourceDescription
impl Copy for ResourceDescription
Auto Trait Implementations§
impl Freeze for ResourceDescription
impl RefUnwindSafe for ResourceDescription
impl Send for ResourceDescription
impl Sync for ResourceDescription
impl Unpin for ResourceDescription
impl UnwindSafe for ResourceDescription
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