Skip to main content

backdrop_gate

Function backdrop_gate 

Source
pub fn backdrop_gate(
    idx: usize,
    main_entity: MainEntity,
    backdrop: &mut BackdropSlot,
    meta: &BackdropMeta,
    pipeline_cache: &PipelineCache,
    render_device: &RenderDevice,
    atlas_layout: &BindGroupLayoutDescriptor,
    sampler: &Sampler,
) -> Option<BindGroup>
Expand description

Whether this layer’s backdrop composite may draw this frame, maintaining the gate-warn bookkeeping. Returns the bind group to sample when ready. Mirrors the content-filter gate in prepare_layer_composites, with a milder warning: a withheld BACKDROP quad shows the unfiltered frame (the pixels are already in the target), never an invisible subtree.