Open jkelleyrtp opened 2 years ago
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);
Git cloning +
cargo run --example depth
produces a window with nothing in it:I'm running macOS so I assume wgpu is going through metal.