pub fn with_fragment(mut self, bytes: &'static [u8]) -> Self {
        self.fragment = Some(ShaderModuleDescriptor {
            label: Some("Default fragment shader"),
            source: Self::shader_auto(bytes).expect("Parse fragment shader"),
        });
        self
    }
/// Load the fragment shader from bytes.
/// This is convenient for static bytes. If you want to load from a file, at
/// runtime, see load_fragment()
Load the fragment shader from bytes.
This is convenient for static bytes. If you want to load from a file, at
runtime, see load_fragment()
Load the fragment shader from bytes . This is convenient for static bytes . If you want to load from a file at runtime see load_fragment ()
pub fn with_fragment(mut self, bytes: &'static [u8]) -> Self {
        self.fragment = Some(ShaderModuleDescriptor {
            label: Some("Default fragment shader"),
            source: Self::shader_auto(bytes).expect("Parse fragment shader"),
        });
        self
    }
pub fn with_fragment ( mut self , bytes : & ' static [ u8 ] ) -> Self { self . fragment = Some ( ShaderModuleDescriptor { label : Some ( " " ) , source : Self :: shader_auto ( bytes ) . expect ( " " ) , } ) ; self }
Load the fragment shader from bytes.
Load the fragment shader from bytes .
mut self
bytes
&'static [u8]
mut self
bytes
&'static [u8]