Skip to main content

default_depth_stencil_format

Function default_depth_stencil_format 

Source
pub fn default_depth_stencil_format(device: &Device) -> TextureFormat
Expand description

The depth-stencil format a render target should use on device: Depth32FloatStencil8 when the device supports it, otherwise the universally-available Depth24PlusStencil8.

Both formats carry a stencil aspect, so the render pass and pipelines must account for it (see RenderAttachments::begin_pass).