Struct wgpu_core::command::bundle::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§
source§impl<'a> Clone for RenderBundleEncoderDescriptor<'a>
impl<'a> Clone for RenderBundleEncoderDescriptor<'a>
source§fn clone(&self) -> RenderBundleEncoderDescriptor<'a>
fn clone(&self) -> RenderBundleEncoderDescriptor<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for RenderBundleEncoderDescriptor<'a>
impl<'a> Debug for RenderBundleEncoderDescriptor<'a>
source§impl<'a> Default for RenderBundleEncoderDescriptor<'a>
impl<'a> Default for RenderBundleEncoderDescriptor<'a>
source§fn default() -> RenderBundleEncoderDescriptor<'a>
fn default() -> RenderBundleEncoderDescriptor<'a>
source§impl<'de, 'a> Deserialize<'de> for RenderBundleEncoderDescriptor<'a>
impl<'de, 'a> Deserialize<'de> for RenderBundleEncoderDescriptor<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl<'a> Hash for RenderBundleEncoderDescriptor<'a>
impl<'a> Hash for RenderBundleEncoderDescriptor<'a>
source§impl<'a> PartialEq for RenderBundleEncoderDescriptor<'a>
impl<'a> PartialEq for RenderBundleEncoderDescriptor<'a>
source§fn eq(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
fn eq(&self, other: &RenderBundleEncoderDescriptor<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for RenderBundleEncoderDescriptor<'a>
impl<'a> Serialize for RenderBundleEncoderDescriptor<'a>
impl<'a> Eq for RenderBundleEncoderDescriptor<'a>
impl<'a> StructuralPartialEq for RenderBundleEncoderDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for RenderBundleEncoderDescriptor<'a>
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§
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.