fn create_render_target(&mut self, width: usize, height: usize) -> Self::RenderTarget {
        let device          = self.device.clone();
        let render_target   = RenderTarget::new(&self.device, width, height, RenderTargetType::StandardForReading);
        let renderer        = MetalRenderer::with_device(&self.device, true);

        MetalOffscreenRenderTarget {
            device:         device,
            render_target:  render_target,
            renderer:       renderer,
            width:          width,
            height:         height
        }
    }
///
/// Creates a new render target for this context
///
Creates a new render target for this context
Creates a new render target for this context
fn create_render_target(&mut self, width: usize, height: usize) -> Self::RenderTarget {
        let device          = self.device.clone();
        let render_target   = RenderTarget::new(&self.device, width, height, RenderTargetType::StandardForReading);
        let renderer        = MetalRenderer::with_device(&self.device, true);
        MetalOffscreenRenderTarget {
            device:         device,
            render_target:  render_target,
            renderer:       renderer,
            width:          width,
            height:         height
        }
    }
fn create_render_target ( & mut self , width : usize , height : usize ) -> Self :: RenderTarget { let device = self . device . clone ( ) ; let render_target = RenderTarget :: new ( & self . device , width , height , RenderTargetType :: StandardForReading ) ; let renderer = MetalRenderer :: with_device ( & self . device , true ) ; MetalOffscreenRenderTarget { device : device , render_target : render_target , renderer : renderer , width : width , height : height } }
Creates a new render target for this context
Creates a new render target for this context
&mut self
width
usize
height
usize