Struct wgpu_core::binding_model::BindGroup
source · pub struct BindGroup {
pub(crate) raw: Snatchable<Box<dyn DynBindGroup>>,
pub(crate) device: Arc<Device>,
pub(crate) layout: Arc<BindGroupLayout>,
pub(crate) label: String,
pub(crate) tracking_data: TrackingData,
pub(crate) used: BindGroupStates,
pub(crate) used_buffer_ranges: Vec<BufferInitTrackerAction>,
pub(crate) used_texture_ranges: Vec<TextureInitTrackerAction>,
pub(crate) dynamic_binding_info: Vec<BindGroupDynamicBindingData>,
pub(crate) late_buffer_binding_sizes: Vec<BufferSize>,
}
Fields§
§raw: Snatchable<Box<dyn DynBindGroup>>
§device: Arc<Device>
§layout: Arc<BindGroupLayout>
§label: String
The label
from the descriptor used to create the resource.
tracking_data: TrackingData
§used: BindGroupStates
§used_buffer_ranges: Vec<BufferInitTrackerAction>
§used_texture_ranges: Vec<TextureInitTrackerAction>
§dynamic_binding_info: Vec<BindGroupDynamicBindingData>
§late_buffer_binding_sizes: Vec<BufferSize>
Actual binding sizes for buffers that don’t have min_binding_size
specified in BGL. Listed in the order of iteration of BGL.entries
.
Implementations§
source§impl BindGroup
impl BindGroup
pub(crate) fn try_raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Result<&'a dyn DynBindGroup, DestroyedResourceError>
pub(crate) fn validate_dynamic_bindings( &self, bind_group_index: u32, offsets: &[DynamicOffset], ) -> Result<(), BindError>
Trait Implementations§
source§impl Labeled for BindGroup
impl Labeled for BindGroup
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for BindGroup
impl ParentDevice for BindGroup
source§impl Trackable for BindGroup
impl Trackable for BindGroup
fn tracker_index(&self) -> TrackerIndex
Auto Trait Implementations§
impl !Freeze for BindGroup
impl !RefUnwindSafe for BindGroup
impl Send for BindGroup
impl Sync for BindGroup
impl Unpin for BindGroup
impl !UnwindSafe for BindGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more