pub fn create_sprv_shader(&self, source: &[u8], name: Option<&str>) -> Shader {
        Shader {
            wgpu: self.wgpu.create_shader_module(&wgpu::ShaderModuleDescriptor {
                label: name,
                source: wgpu::util::make_spirv(source),
            })
        }
    }
/// Create a shader given the bytes of a spirv bindary.
/// # Safety
/// Wgpu makes no attempt to check if this is a valid spirv and can hence cause a driver crash or funky behaviour. See [`wgpu::Device::create_shader_module_spirv`]
Create a shader given the bytes of a spirv bindary.
Create a shader given the bytes of a spirv bindary .
pub fn create_sprv_shader(&self, source: &[u8], name: Option<&str>) -> Shader {
        Shader {
            wgpu: self.wgpu.create_shader_module(&wgpu::ShaderModuleDescriptor {
                label: name,
                source: wgpu::util::make_spirv(source),
            })
        }
    }
pub fn create_sprv_shader ( & self , source : & [ u8 ] , name : Option < & str > ) -> Shader { Shader { wgpu : self . wgpu . create_shader_module ( & wgpu :: ShaderModuleDescriptor { label : name , source : wgpu :: util :: make_spirv ( source ) , } ) } }
Create a shader given the bytes of a spirv bindary.
Create a shader given the bytes of a spirv bindary .
&self
source
&[u8]
name
Option<&str>
safety
Wgpu makes no attempt to check if this is a valid spirv and can hence cause a driver crash or funky behaviour. See [`wgpu::Device::create_shader_module_spirv`]
Wgpu makes no attempt to check if this is a valid spirv and can hence cause a driver crash or funky behaviour . See [ ` wgpu :: Device :: create_shader_module_spirv ` ]