Struct wgpu_core::binding_model::BindGroupLayout
source · pub struct BindGroupLayout<A: Api> {
pub(crate) raw: A::BindGroupLayout,
pub(crate) device_id: Stored<DeviceId>,
pub(crate) multi_ref_count: MultiRefCount,
pub(crate) entries: HashMap<u32, BindGroupLayoutEntry, BuildHasherDefault<FxHasher>>,
pub(crate) dynamic_count: usize,
pub(crate) count_validator: BindingTypeMaxCountValidator,
pub(crate) label: String,
}
Expand description
Bind group layout.
The lifetime of BGLs is a bit special. They are only referenced on CPU without considering GPU operations. And on CPU they get manual inc-refs and dec-refs. In particular, the following objects depend on them:
- produced bind groups
- produced pipeline layouts
- pipelines with implicit layouts
Fields§
§raw: A::BindGroupLayout
§device_id: Stored<DeviceId>
§multi_ref_count: MultiRefCount
§entries: HashMap<u32, BindGroupLayoutEntry, BuildHasherDefault<FxHasher>>
§dynamic_count: usize
§count_validator: BindingTypeMaxCountValidator
§label: String