pub struct RenderBundleEncoderDescriptor<'a> {
pub label: Label<'a>,
pub color_formats: &'a [Option<TextureFormat>],
pub depth_stencil: Option<RenderBundleDepthStencil>,
pub sample_count: u32,
pub multiview: Option<NonZeroU32>,
}
Expand description
Describes a RenderBundleEncoder
.
For use with Device::create_render_bundle_encoder
.
Corresponds to WebGPU GPURenderBundleEncoderDescriptor
.
Fields§
§label: Label<'a>
Debug label of the render bundle encoder. This will show up in graphics debuggers for easy identification.
color_formats: &'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 render pass this render bundle is executed in.
depth_stencil: Option<RenderBundleDepthStencil>
Information about the depth attachment that this render bundle is capable to rendering to. This must match the format of the depth attachments in the render pass 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 render passes 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<'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 ==
.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.