fn realize(self) -> Vec<u8> {
        let mut result  = vec![0; self.width * self.height * 4];

        let texture     = self.render_target.render_texture();
        let region      = metal::MTLRegion {
            origin: metal::MTLOrigin    { x: 0, y: 0, z: 0 },
            size:   metal::MTLSize      { width: self.width as u64, height: self.height as u64, depth: 1 }
        };
        texture.get_bytes(result.as_mut_ptr() as *mut c_void, (self.width*4) as u64, region, 0);

        result
    }
///
/// Consumes this render target and returns the realized pixels as a byte array
///
Consumes this render target and returns the realized pixels as a byte array
Consumes this render target and returns the realized pixels as a byte array
fn realize(self) -> Vec<u8> {
        let mut result  = vec![0; self.width * self.height * 4];
        let texture     = self.render_target.render_texture();
        let region      = metal::MTLRegion {
            origin: metal::MTLOrigin    { x: 0, y: 0, z: 0 },
            size:   metal::MTLSize      { width: self.width as u64, height: self.height as u64, depth: 1 }
        };
        texture.get_bytes(result.as_mut_ptr() as *mut c_void, (self.width*4) as u64, region, 0);
        result
    }
fn realize ( self ) -> Vec < u8 > { let mut result = vec ! [ 0 self width self height 4 ] ; let texture = self . render_target . render_texture ( ) ; let region = metal :: MTLRegion { origin : metal :: MTLOrigin { x : 0 , y : 0 , z : 0 } , size : metal :: MTLSize { width : self . width as u64 , height : self . height as u64 , depth : 1 } } ; texture . get_bytes ( result . as_mut_ptr ( ) as * mut c_void , ( self . width * 4 ) as u64 , region , 0 ) ; result }
Consumes this render target and returns the realized pixels as a byte array
Consumes this render target and returns the realized pixels as a byte array
self