mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Fix the check for depth+stencil aspect of views
This commit is contained in:
1 parent
8f02b73655
commit
62f26367cd
2 files changed
+4
-1
No files matched your search
@@ -3,6 +3,7 @@
|
||||
## TBD
|
||||
- All:
|
||||
- expose more formats via adapter-specific feature
|
||||
- fix creation of depth+stencil views
|
||||
- Metal:
|
||||
- fix usage of work group memory
|
||||
|
||||
|
||||
@@ -1568,7 +1568,9 @@ impl<A: HalApi> Device<A> {
|
||||
expected: &'static str,
|
||||
) -> Result<(wgt::TextureUsages, hal::TextureUses), binding_model::CreateBindGroupError> {
|
||||
use crate::binding_model::CreateBindGroupError as Error;
|
||||
if hal::FormatAspects::from(view.desc.format)
|
||||
if view
|
||||
.desc
|
||||
.aspects()
|
||||
.contains(hal::FormatAspects::DEPTH | hal::FormatAspects::STENCIL)
|
||||
{
|
||||
return Err(Error::DepthStencilAspect);
|
||||
|
||||
Reference in new issue
Block a user