pub fn new(device: Device, code: &[u32]) -> VdResult<ShaderModule> {
        let create_info = ShaderModuleCreateInfo::builder()
            .code(code)
            .build();

        let handle = unsafe { device.create_shader_module(&create_info, None)? };

        Ok(ShaderModule {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
/// Creates and returns a new `ShaderModule`.
Creates and returns a new `ShaderModule`.
Creates and returns a new ` ShaderModule ` .
pub fn new(device: Device, code: &[u32]) -> VdResult<ShaderModule> {
        let create_info = ShaderModuleCreateInfo::builder()
            .code(code)
            .build();
        let handle = unsafe { device.create_shader_module(&create_info, None)? };
        Ok(ShaderModule {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
pub fn new ( device : Device , code : & [ u32 ] ) -> VdResult < ShaderModule > { let create_info = ShaderModuleCreateInfo :: builder ( ) . code ( code ) . build ( ) ; let handle = unsafe { device . create_shader_module ( & create_info , None ) ? } ; Ok ( ShaderModule { inner : Arc :: new ( Inner { handle , device , } ) } ) }
Creates and returns a new `ShaderModule`.
Creates and returns a new ` ShaderModule ` .
device
Device
code
&[u32]
device
Device
code
&[u32]