Struct wgpu_core::command::RenderBundle
source · pub struct RenderBundle {
base: BasePass<ArcRenderCommand>,
pub(super) is_depth_read_only: bool,
pub(super) is_stencil_read_only: bool,
pub(crate) device: Arc<Device>,
pub(crate) used: RenderBundleScope,
pub(super) buffer_memory_init_actions: Vec<BufferInitTrackerAction>,
pub(super) texture_memory_init_actions: Vec<TextureInitTrackerAction>,
pub(super) context: RenderPassContext,
label: String,
pub(crate) tracking_data: TrackingData,
discard_hal_labels: bool,
}
Fields§
§base: BasePass<ArcRenderCommand>
§is_depth_read_only: bool
§is_stencil_read_only: bool
§device: Arc<Device>
§used: RenderBundleScope
§buffer_memory_init_actions: Vec<BufferInitTrackerAction>
§texture_memory_init_actions: Vec<TextureInitTrackerAction>
§context: RenderPassContext
§label: String
The label
from the descriptor used to create the resource.
tracking_data: TrackingData
§discard_hal_labels: bool
Implementations§
source§impl RenderBundle
impl RenderBundle
sourcepub(super) unsafe fn execute(
&self,
raw: &mut dyn DynCommandEncoder,
snatch_guard: &SnatchGuard<'_>,
) -> Result<(), ExecutionError>
pub(super) unsafe fn execute( &self, raw: &mut dyn DynCommandEncoder, snatch_guard: &SnatchGuard<'_>, ) -> Result<(), ExecutionError>
Actually encode the contents into a native command buffer.
This is partially duplicating the logic of render_pass_end
.
However the point of this function is to be lighter, since we already had
a chance to go through the commands in render_bundle_encoder_finish
.
Note that the function isn’t expected to fail, generally. All the validation has already been done by this point. The only failure condition is if some of the used buffers are destroyed.
Trait Implementations§
source§impl Debug for RenderBundle
impl Debug for RenderBundle
source§impl Drop for RenderBundle
impl Drop for RenderBundle
source§impl Labeled for RenderBundle
impl Labeled for RenderBundle
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 RenderBundle
impl ParentDevice for RenderBundle
source§impl ResourceType for RenderBundle
impl ResourceType for RenderBundle
source§impl StorageItem for RenderBundle
impl StorageItem for RenderBundle
type Marker = RenderBundle
source§impl Trackable for RenderBundle
impl Trackable for RenderBundle
fn tracker_index(&self) -> TrackerIndex
impl Send for RenderBundle
impl Sync for RenderBundle
Auto Trait Implementations§
impl Freeze for RenderBundle
impl !RefUnwindSafe for RenderBundle
impl Unpin for RenderBundle
impl !UnwindSafe for RenderBundle
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