diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-24 13:29:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 13:29:42 +0200 |
commit | f4a9db350fbf00a6cb13a2c030b925cfd5218ed2 (patch) | |
tree | 3ab5cc4f4db7e4855df04fc792ee1e66e05a5d13 /ext/webgpu/binding.rs | |
parent | 50f69a6996ae4dcdfe53f15fc49949d3756c9787 (diff) |
chore(ext/webgpu): update wgpu to 0.10.0 (#11781)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'ext/webgpu/binding.rs')
-rw-r--r-- | ext/webgpu/binding.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/webgpu/binding.rs b/ext/webgpu/binding.rs index daf4e718d..c1b98fcef 100644 --- a/ext/webgpu/binding.rs +++ b/ext/webgpu/binding.rs @@ -91,7 +91,8 @@ pub fn op_webgpu_create_bind_group_layout( for entry in &args.entries { entries.push(wgpu_types::BindGroupLayoutEntry { binding: entry.binding, - visibility: wgpu_types::ShaderStage::from_bits(entry.visibility).unwrap(), + visibility: wgpu_types::ShaderStages::from_bits(entry.visibility) + .unwrap(), ty: if let Some(buffer) = &entry.buffer { wgpu_types::BindingType::Buffer { ty: match &buffer.kind { @@ -166,7 +167,6 @@ pub fn op_webgpu_create_bind_group_layout( } else if let Some(storage_texture) = &entry.storage_texture { wgpu_types::BindingType::StorageTexture { access: match storage_texture.access.as_str() { - "read-only" => wgpu_types::StorageTextureAccess::ReadOnly, "write-only" => wgpu_types::StorageTextureAccess::WriteOnly, _ => unreachable!(), }, |