#[repr(C)]pub struct SurfaceDesc {
pub format: Format,
pub ty: ResourceType,
pub usage: Usage,
pub pool: Pool,
pub multi_sample_type: MultiSampleType,
pub multi_sample_quality: u32,
pub width: u32,
pub height: u32,
}Expand description
[docs.microsoft.com] D3DSURFACE_DESC
Describes a Surface.
Fields§
§format: Format§ty: ResourceType§usage: Usage§pool: Pool§multi_sample_type: MultiSampleType§multi_sample_quality: u32§width: u32§height: u32Trait Implementations§
Source§impl Clone for SurfaceDesc
impl Clone for SurfaceDesc
Source§fn clone(&self) -> SurfaceDesc
fn clone(&self) -> SurfaceDesc
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 SurfaceDesc
impl Debug for SurfaceDesc
Source§impl Default for SurfaceDesc
impl Default for SurfaceDesc
Source§fn default() -> SurfaceDesc
fn default() -> SurfaceDesc
Returns the “default value” for a type. Read more
Source§impl DerefMut for SurfaceDesc
impl DerefMut for SurfaceDesc
Source§impl From<D3DSURFACE_DESC> for SurfaceDesc
impl From<D3DSURFACE_DESC> for SurfaceDesc
Source§fn from(value: D3DSURFACE_DESC) -> Self
fn from(value: D3DSURFACE_DESC) -> Self
Converts to this type from the input type.
Source§impl From<SurfaceDesc> for D3DSURFACE_DESC
impl From<SurfaceDesc> for D3DSURFACE_DESC
Source§fn from(value: SurfaceDesc) -> Self
fn from(value: SurfaceDesc) -> Self
Converts to this type from the input type.
Source§impl Deref for SurfaceDesc
impl Deref for SurfaceDesc
impl Copy for SurfaceDesc
Auto Trait Implementations§
impl Freeze for SurfaceDesc
impl RefUnwindSafe for SurfaceDesc
impl Send for SurfaceDesc
impl Sync for SurfaceDesc
impl Unpin for SurfaceDesc
impl UnwindSafe for SurfaceDesc
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