pub fn build_instance_bind_group(
device: &Device,
layout: &BindGroupLayout,
target_entries: &[BindingEntry],
resolved: &[(&'static str, BindingResource<'_>)],
) -> Option<BindGroup>Expand description
Builds a bind group matching each (name, resource) pair in resolved
to its @binding(N) via target_entries. Returns None if any name
in resolved has no matching entry — the caller (GPUBindingInstance::upload)
turns that into a None upload result via ?, which the sync system
retries next tick rather than treating as fatal (see Asset::upload).