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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.