Struct wgpu_core::track::RenderBundleScope
source · pub(crate) struct RenderBundleScope {
pub buffers: BufferUsageScope,
pub textures: TextureUsageScope,
pub bind_groups: StatelessTracker<BindGroup>,
pub render_pipelines: StatelessTracker<RenderPipeline>,
}
Expand description
This is a render bundle specific usage scope. It includes stateless resources that are not normally included in a usage scope, but are used by render bundles and need to be owned by the render bundles.
Fields§
§buffers: BufferUsageScope
§textures: TextureUsageScope
§bind_groups: StatelessTracker<BindGroup>
§render_pipelines: StatelessTracker<RenderPipeline>
Implementations§
source§impl RenderBundleScope
impl RenderBundleScope
sourcepub unsafe fn merge_bind_group(
&mut self,
bind_group: &BindGroupStates,
) -> Result<(), ResourceUsageCompatibilityError>
pub unsafe fn merge_bind_group( &mut self, bind_group: &BindGroupStates, ) -> Result<(), ResourceUsageCompatibilityError>
Merge the inner contents of a bind group into the render bundle tracker.
Only stateful things are merged in herell other resources are owned indirectly by the bind group.
§Safety
The maximum ID given by each bind group resource must be less than the
length of the storage given at the call to new
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderBundleScope
impl !RefUnwindSafe for RenderBundleScope
impl Send for RenderBundleScope
impl Sync for RenderBundleScope
impl Unpin for RenderBundleScope
impl !UnwindSafe for RenderBundleScope
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