Skip to main content

depth_texture_descriptor

Function depth_texture_descriptor 

Source
pub fn depth_texture_descriptor(
    width: u32,
    height: u32,
) -> TextureDescriptor<'static>
Expand description

The descriptor for a depth attachment covering a width x height target.

Both extents are floored at 1: a zero-extent texture cannot be created, and a frame that asked for one has no pixels to depth-test anyway.