#[repr(C)]pub struct MTLViewport {
pub originX: c_double,
pub originY: c_double,
pub width: c_double,
pub height: c_double,
pub znear: c_double,
pub zfar: c_double,
}Available on crate feature
MTLRenderCommandEncoder only.Expand description
Fields§
§originX: c_double§originY: c_double§width: c_double§height: c_double§znear: c_double§zfar: c_doubleTrait Implementations§
Source§impl Clone for MTLViewport
impl Clone for MTLViewport
Source§fn clone(&self) -> MTLViewport
fn clone(&self) -> MTLViewport
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 MTLViewport
impl Debug for MTLViewport
Source§impl Encode for MTLViewport
impl Encode for MTLViewport
Source§impl PartialEq for MTLViewport
impl PartialEq for MTLViewport
Source§impl RefEncode for MTLViewport
impl RefEncode for MTLViewport
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTLViewport
impl StructuralPartialEq for MTLViewport
Auto Trait Implementations§
impl Freeze for MTLViewport
impl RefUnwindSafe for MTLViewport
impl Send for MTLViewport
impl Sync for MTLViewport
impl Unpin for MTLViewport
impl UnwindSafe for MTLViewport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.