#[repr(C)]pub struct MTLRegion {
pub origin: MTLOrigin,
pub size: MTLSize,
}Expand description
Fields§
§origin: MTLOrigin§size: MTLSizeImplementations§
Source§impl MTLRegion
impl MTLRegion
pub fn new_1d(x: NSUInteger, width: NSUInteger) -> Self
pub fn new_2d( x: NSUInteger, y: NSUInteger, width: NSUInteger, height: NSUInteger, ) -> Self
pub fn new_3d( x: NSUInteger, y: NSUInteger, z: NSUInteger, width: NSUInteger, height: NSUInteger, depth: NSUInteger, ) -> Self
Trait Implementations§
impl Copy for MTLRegion
impl Eq for MTLRegion
impl StructuralPartialEq for MTLRegion
Auto Trait Implementations§
impl Freeze for MTLRegion
impl RefUnwindSafe for MTLRegion
impl Send for MTLRegion
impl Sync for MTLRegion
impl Unpin for MTLRegion
impl UnwindSafe for MTLRegion
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)