render_backend::stencil

Structs

ClipDraw

One clip geometry instance to draw into the stencil buffer.

Properties

clip_id

Type: u32

geometry_signature

Type: u64

geometry

Type: &'a VertexBuffers<Vertex, u16>


StencilRenderer

Maintains the stencil stack used to render nested vector clips.

Implementations

new
pub fn new(device: &Device, width: u32, height: u32, sample_count: u32, color_format: TextureFormat, globals: &Buffer, clip_transforms: &Buffer) -> Self

Create the stencil pipelines and backing texture.


Vertex

Tessellated stencil vertex.

Properties

position

Type: [f32; 2]