Struct wgpu_core::command::RenderPass
source · pub struct RenderPass {
base: Option<BasePass<ArcRenderCommand>>,
parent: Option<Arc<CommandBuffer>>,
color_attachments: ArrayVec<Option<ArcRenderPassColorAttachment>, { hal::MAX_COLOR_ATTACHMENTS }>,
depth_stencil_attachment: Option<ArcRenderPassDepthStencilAttachment>,
timestamp_writes: Option<ArcPassTimestampWrites>,
occlusion_query_set: Option<Arc<QuerySet>>,
current_bind_groups: BindGroupStateChange,
current_pipeline: StateChange<RenderPipelineId>,
}
Fields§
§base: Option<BasePass<ArcRenderCommand>>
All pass data & records is stored here.
If this is None
, the pass is in the ‘ended’ state and can no longer be used.
Any attempt to record more commands will result in a validation error.
parent: Option<Arc<CommandBuffer>>
Parent command buffer that this pass records commands into.
If it is none, this pass is invalid and any operation on it will return an error.
color_attachments: ArrayVec<Option<ArcRenderPassColorAttachment>, { hal::MAX_COLOR_ATTACHMENTS }>
§depth_stencil_attachment: Option<ArcRenderPassDepthStencilAttachment>
§timestamp_writes: Option<ArcPassTimestampWrites>
§occlusion_query_set: Option<Arc<QuerySet>>
§current_bind_groups: BindGroupStateChange
§current_pipeline: StateChange<RenderPipelineId>
Implementations§
source§impl RenderPass
impl RenderPass
sourcefn new(
parent: Option<Arc<CommandBuffer>>,
desc: ArcRenderPassDescriptor<'_>,
) -> Self
fn new( parent: Option<Arc<CommandBuffer>>, desc: ArcRenderPassDescriptor<'_>, ) -> Self
If the parent command buffer is invalid, the returned pass will be invalid.
pub fn label(&self) -> Option<&str>
fn base_mut<'a>( &'a mut self, scope: PassErrorScope, ) -> Result<&'a mut BasePass<ArcRenderCommand>, RenderPassError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderPass
impl !RefUnwindSafe for RenderPass
impl Send for RenderPass
impl Sync for RenderPass
impl Unpin for RenderPass
impl !UnwindSafe for RenderPass
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