Skip to content

Commit

Permalink
Allow CAMetalLayer images to be used as storage textures (#6603)
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-ec authored Dec 1, 2024
1 parent 1ea5498 commit 61dc75e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wgpu-hal/src/metal/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ impl crate::Adapter for super::Adapter {
current_extent,
usage: crate::TextureUses::COLOR_TARGET
| crate::TextureUses::COPY_SRC
| crate::TextureUses::COPY_DST,
| crate::TextureUses::COPY_DST
| crate::TextureUses::STORAGE_READ
| crate::TextureUses::STORAGE_READ_WRITE,
})
}

Expand Down

0 comments on commit 61dc75e

Please sign in to comment.