TextureFormatStencil extension
Whether a TextureFormat carries an eight-bit stencil beside its depth.
Asked by a backend when it opens a pass: a stencil test against an attachment that has no stencil is specified to pass always on GL and to be an invalid descriptor on Metal, and neither answer is what a caller who configured one meant. Every depth format this engine names carries one, which is why nothing above the backends has ever had to ask.
Properties
- hasStencil → bool
-
Available on TextureFormat, provided by the TextureFormatStencil extension
Whether the format carries a stencil plane: true for TextureFormat.s8UInt, TextureFormat.d24UnormS8Uint and TextureFormat.d32FloatS8UInt, false for everything else, the depth-only formats included.no setter