Fix simplest and sky shaders being switched in example-runner-wgpu's rebuild code. (#639)

This commit is contained in:
Alex Es 2021-05-31 12:50:50 +03:00 committed by GitHub
parent 3fa15c99ae
commit 62f375f148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,8 @@ fn shader_module(shader: RustGPUShader) -> wgpu::ShaderModuleDescriptor<'static>
std::env::set_var("OUT_DIR", env!("OUT_DIR"));
std::env::set_var("PROFILE", env!("PROFILE"));
let (crate_name, capabilities): (_, &[Capability]) = match shader {
RustGPUShader::Simplest => ("sky-shader", &[]),
RustGPUShader::Sky => ("simplest-shader", &[]),
RustGPUShader::Simplest => ("simplest-shader", &[]),
RustGPUShader::Sky => ("sky-shader", &[]),
RustGPUShader::Compute => ("compute-shader", &[]),
RustGPUShader::Mouse => (
"mouse-shader",