pub fn create_wgsl_shader(&self, source: &str, name: Option<&str>) -> Shader {
        Shader {
            wgpu: self.wgpu.create_shader_module(&wgpu::ShaderModuleDescriptor {
                label: name,
                source: wgpu::ShaderSource::Wgsl(source.into())
            })
        }
    }
/// Create a shader given the wgsl source code
Create a shader given the wgsl source code
Create a shader given the wgsl source code
pub fn create_wgsl_shader(&self, source: &str, name: Option<&str>) -> Shader {
        Shader {
            wgpu: self.wgpu.create_shader_module(&wgpu::ShaderModuleDescriptor {
                label: name,
                source: wgpu::ShaderSource::Wgsl(source.into())
            })
        }
    }
pub fn create_wgsl_shader ( & self , source : & str , name : Option < & str > ) -> Shader { Shader { wgpu : self . wgpu . create_shader_module ( & wgpu :: ShaderModuleDescriptor { label : name , source : wgpu :: ShaderSource :: Wgsl ( source . into ( ) ) } ) } }
Create a shader given the wgsl source code
Create a shader given the wgsl source code
&self
source
&str
name
Option<&str>