Struct wgpu_core::command::render::RenderPassInfo
source · struct RenderPassInfo<'a, A: HalApi> {
context: RenderPassContext,
usage_scope: UsageScope<A>,
render_attachments: ArrayVec<RenderAttachment<'a>, MAX_TOTAL_ATTACHMENTS>,
is_depth_read_only: bool,
is_stencil_read_only: bool,
extent: Extent3d,
_phantom: PhantomData<A>,
pending_discard_init_fixups: Vec<TextureSurfaceDiscard>,
divergent_discarded_depth_stencil_aspect: Option<(TextureAspect, &'a TextureView<A>)>,
multiview: Option<NonZeroU32>,
}
Fields§
§context: RenderPassContext
§usage_scope: UsageScope<A>
§render_attachments: ArrayVec<RenderAttachment<'a>, MAX_TOTAL_ATTACHMENTS>
All render attachments, including depth/stencil
is_depth_read_only: bool
§is_stencil_read_only: bool
§extent: Extent3d
§_phantom: PhantomData<A>
§pending_discard_init_fixups: Vec<TextureSurfaceDiscard>
§divergent_discarded_depth_stencil_aspect: Option<(TextureAspect, &'a TextureView<A>)>
§multiview: Option<NonZeroU32>
Implementations§
source§impl<'a, A: HalApi> RenderPassInfo<'a, A>
impl<'a, A: HalApi> RenderPassInfo<'a, A>
fn add_pass_texture_init_actions<V>( channel: &PassChannel<V>, texture_memory_actions: &mut CommandBufferTextureMemoryActions, view: &TextureView<A>, texture_guard: &Storage<Texture<A>, TextureId>, pending_discard_init_fixups: &mut Vec<TextureSurfaceDiscard> )
fn start( device: &Device<A>, label: Option<&str>, color_attachments: &[Option<RenderPassColorAttachment>], depth_stencil_attachment: Option<&RenderPassDepthStencilAttachment>, timestamp_writes: Option<&RenderPassTimestampWrites>, occlusion_query_set: Option<QuerySetId>, cmd_buf: &mut CommandBuffer<A>, view_guard: &'a Storage<TextureView<A>, TextureViewId>, buffer_guard: &'a Storage<Buffer<A>, BufferId>, texture_guard: &'a Storage<Texture<A>, TextureId>, query_set_guard: &'a Storage<QuerySet<A>, QuerySetId> ) -> Result<Self, RenderPassErrorInner>
fn finish( self, raw: &mut A::CommandEncoder, texture_guard: &Storage<Texture<A>, TextureId> ) -> Result<(UsageScope<A>, Vec<TextureSurfaceDiscard>), RenderPassErrorInner>
Auto Trait Implementations§
impl<'a, A> !RefUnwindSafe for RenderPassInfo<'a, A>
impl<'a, A> Send for RenderPassInfo<'a, A>where A: Send,
impl<'a, A> Sync for RenderPassInfo<'a, A>where A: Sync,
impl<'a, A> Unpin for RenderPassInfo<'a, A>where A: Unpin,
impl<'a, A> !UnwindSafe for RenderPassInfo<'a, A>
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