Skip to content

Commit

Permalink
metal: setStencilAttachmentPixelFormat for stencil
Browse files Browse the repository at this point in the history
  • Loading branch information
EriKWDev authored and kvark committed Jan 10, 2025
1 parent 285148f commit dec3ded
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blade-graphics/src/metal/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ impl crate::traits::ShaderDevice for super::Context {
Some(ref ds) => {
let raw_format = super::map_texture_format(ds.format);
descriptor.setDepthAttachmentPixelFormat(raw_format);
//TODO: descriptor.set_stencil_attachment_pixel_format(raw_format);
if ds.format.aspects().contains(crate::TexelAspects::STENCIL) {
descriptor.setStencilAttachmentPixelFormat(raw_format);
}

let ds_descriptor = create_depth_stencil_desc(ds);
let raw = self
Expand Down

0 comments on commit dec3ded

Please sign in to comment.