graphics: depth_texture_view

This commit is contained in:
2026-03-26 07:53:19 -07:00
parent 33353b36b7
commit f40b28b776

View File

@@ -155,6 +155,9 @@ impl GraphicsState{
depth_texture.create_view(&wgpu::TextureViewDescriptor::default()) depth_texture.create_view(&wgpu::TextureViewDescriptor::default())
} }
pub const fn depth_texture_view(&self)->&wgpu::TextureView{
&self.depth_view
}
pub fn clear(&mut self){ pub fn clear(&mut self){
self.models.clear(); self.models.clear();
} }