Depth example doesn't show anything on macOS
jkelleyrtp opened this issue · 1 comments
jkelleyrtp commented
juliusl commented
On line 55 in the example, try changing the compare function from Greater to LessEqual,
let mut glyph_brush = GlyphBrushBuilder::using_font(inconsolata)
.depth_stencil_state(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32Float,
depth_write_enabled: true,
depth_compare: wgpu::CompareFunction::LessEqual, <---
stencil: wgpu::StencilState::default(),
bias: wgpu::DepthBiasState::default(),
})
.build(&device, FORMAT);