pub fn build(&self, device: Device) -> VdResult<GraphicsPipeline> {
        let handle = unsafe {
            let create_infos = ::std::slice::from_raw_parts(&self.create_info, 1);
            *device.create_graphics_pipelines(None, create_infos, None)?.get_unchecked(0)
        };

        Ok(GraphicsPipeline {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
/// Creates and returns a new `GraphicsPipeline`. Use
/// `GraphicsPipeline::create` to create multiple pipelines in one call.
Creates and returns a new `GraphicsPipeline`. Use
`GraphicsPipeline::create` to create multiple pipelines in one call.
Creates and returns a new ` GraphicsPipeline ` . Use ` GraphicsPipeline :: create ` to create multiple pipelines in one call .
pub fn build(&self, device: Device) -> VdResult<GraphicsPipeline> {
        let handle = unsafe {
            let create_infos = ::std::slice::from_raw_parts(&self.create_info, 1);
            *device.create_graphics_pipelines(None, create_infos, None)?.get_unchecked(0)
        };
        Ok(GraphicsPipeline {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
pub fn build ( & self , device : Device ) -> VdResult < GraphicsPipeline > { let handle = unsafe { let create_infos = :: std :: slice :: from_raw_parts ( & self . create_info , 1 ) ; * device . create_graphics_pipelines ( None , create_infos , None ) ? . get_unchecked ( 0 ) } ; Ok ( GraphicsPipeline { inner : Arc :: new ( Inner { handle , device , } ) } ) }
Creates and returns a new `GraphicsPipeline`.
Creates and returns a new ` GraphicsPipeline ` .
&self
device
Device
&self
device
Device