Struct wgpu_core::command::RenderBundleEncoderDescriptor
source · [−]pub struct RenderBundleEncoderDescriptor<'a> {
pub label: Label<'a>,
pub color_formats: Cow<'a, [Option<TextureFormat>]>,
pub depth_stencil: Option<RenderBundleDepthStencil>,
pub sample_count: u32,
pub multiview: Option<NonZeroU32>,
}
Expand description
Describes a RenderBundleEncoder
.
Fields
label: Label<'a>
Debug label of the render bundle encoder. This will show up in graphics debuggers for easy identification.
color_formats: Cow<'a, [Option<TextureFormat>]>
The formats of the color attachments that this render bundle is capable to rendering to. This must match the formats of the color attachments in the renderpass this render bundle is executed in.
depth_stencil: Option<RenderBundleDepthStencil>
Information about the depth attachment that this render bundle is capable to rendering to. The format must match the format of the depth attachments in the renderpass this render bundle is executed in.
sample_count: u32
Sample count this render bundle is capable of rendering to. This must match the pipelines and the renderpasses it is used in.
multiview: Option<NonZeroU32>
If this render bundle will rendering to multiple array layers in the attachments at the same time.
Trait Implementations
sourceimpl<'a> Clone for RenderBundleEncoderDescriptor<'a>
impl<'a> Clone for RenderBundleEncoderDescriptor<'a>
sourcefn clone(&self) -> RenderBundleEncoderDescriptor<'a>
fn clone(&self) -> RenderBundleEncoderDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for RenderBundleEncoderDescriptor<'a>
impl<'a> Debug for RenderBundleEncoderDescriptor<'a>
sourceimpl<'a> Default for RenderBundleEncoderDescriptor<'a>
impl<'a> Default for RenderBundleEncoderDescriptor<'a>
sourcefn default() -> RenderBundleEncoderDescriptor<'a>
fn default() -> RenderBundleEncoderDescriptor<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Hash for RenderBundleEncoderDescriptor<'a>
impl<'a> Hash for RenderBundleEncoderDescriptor<'a>
sourceimpl<'a> PartialEq<RenderBundleEncoderDescriptor<'a>> for RenderBundleEncoderDescriptor<'a>
impl<'a> PartialEq<RenderBundleEncoderDescriptor<'a>> for RenderBundleEncoderDescriptor<'a>
sourcefn eq(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
fn eq(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
fn ne(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for RenderBundleEncoderDescriptor<'a>
impl<'a> StructuralEq for RenderBundleEncoderDescriptor<'a>
impl<'a> StructuralPartialEq for RenderBundleEncoderDescriptor<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RenderBundleEncoderDescriptor<'a>
impl<'a> Send for RenderBundleEncoderDescriptor<'a>
impl<'a> Sync for RenderBundleEncoderDescriptor<'a>
impl<'a> Unpin for RenderBundleEncoderDescriptor<'a>
impl<'a> UnwindSafe for RenderBundleEncoderDescriptor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.