pub(crate) fn bind_target(
world: &World,
context: RenderContext,
pass: Entity,
device: &Device,
size: (u32, u32),
samples: u32,
with_depth: bool,
) -> TextureExpand description
Give pass an output-sized colour target, and its optional depth and
multisample attachments, and return the colour texture.
The target is the library’s PersistentTarget, so the texture is
registered in the graph in its own right — a screenshot can name it and read
it back — and the view depends on it, which keeps it alive.