#[repr(C)]pub struct MTLSize {
pub width: NSUInteger,
pub height: NSUInteger,
pub depth: NSUInteger,
}Available on crate feature
MTLTypes only.Expand description
A set of dimensions to declare the size of an object, such as an image, texture, threadgroup, or grid.
See also Apple’s documentation
Fields§
§width: NSUInteger§height: NSUInteger§depth: NSUIntegerTrait Implementations§
Source§impl RefEncode for MTLSize
impl RefEncode for MTLSize
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 MTLSize
impl StructuralPartialEq for MTLSize
Auto Trait Implementations§
impl Freeze for MTLSize
impl RefUnwindSafe for MTLSize
impl Send for MTLSize
impl Sync for MTLSize
impl Unpin for MTLSize
impl UnwindSafe for MTLSize
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.