chore(ext/webgpu): update wgpu to 0.10.0 (#11781)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Leo K 2021-08-24 13:29:42 +02:00 committed by GitHub
parent 50f69a6996
commit f4a9db350f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 366 additions and 501 deletions

View file

@ -128,6 +128,12 @@ pub fn op_webgpu_write_texture(
y: origin.y.unwrap_or(0),
z: origin.z.unwrap_or(0),
}),
aspect: match args.destination.aspect.as_str() {
"all" => wgpu_types::TextureAspect::All,
"stencil-only" => wgpu_types::TextureAspect::StencilOnly,
"depth-only" => wgpu_types::TextureAspect::DepthOnly,
_ => unreachable!(),
},
};
let data_layout = wgpu_types::ImageDataLayout {
offset: args.data_layout.offset.unwrap_or(0),