pub struct RenderBundleEncoderDescriptorBuilder<'a, CS: State<'a>> { /* private fields */ }Expand description
Builder for wgpu::RenderBundleEncoderDescriptor
Set all required fields and any optional fields, then call build().
Builder field setters:
- color_formats Optional, defaults to ::core::default::Default::default()
- depth_stencil Optional, defaults to
None - sample_count Optional, defaults to
0u32 - multiview Optional, defaults to
None
Implementations§
Source§impl<'a> RenderBundleEncoderDescriptorBuilder<'a, Empty>
impl<'a> RenderBundleEncoderDescriptorBuilder<'a, Empty>
pub fn new() -> RenderBundleEncoderDescriptorBuilder<'a, Empty>
Source§impl<'a, CS: State<'a>> RenderBundleEncoderDescriptorBuilder<'a, CS>
impl<'a, CS: State<'a>> RenderBundleEncoderDescriptorBuilder<'a, CS>
Sourcepub fn label(
self,
label: Label<'a>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetLabel<CS>>where
CS::Label: LabelIsEmpty,
pub fn label(
self,
label: Label<'a>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetLabel<CS>>where
CS::Label: LabelIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::label. Optional, defaults to None.
Sourcepub fn color_formats(
self,
color_formats: &'a [Option<TextureFormat>],
) -> RenderBundleEncoderDescriptorBuilder<'a, SetColorFormats<CS>>where
CS::ColorFormats: ColorFormatsIsEmpty,
pub fn color_formats(
self,
color_formats: &'a [Option<TextureFormat>],
) -> RenderBundleEncoderDescriptorBuilder<'a, SetColorFormats<CS>>where
CS::ColorFormats: ColorFormatsIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::color_formats. Optional, defaults to ::core::default::Default::default().
Sourcepub fn depth_stencil(
self,
depth_stencil: impl Nested<RenderBundleDepthStencil>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetDepthStencil<CS>>where
CS::DepthStencil: DepthStencilIsEmpty,
pub fn depth_stencil(
self,
depth_stencil: impl Nested<RenderBundleDepthStencil>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetDepthStencil<CS>>where
CS::DepthStencil: DepthStencilIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::depth_stencil. Optional, defaults to None.
Sourcepub fn maybe_depth_stencil(
self,
depth_stencil: impl Nested<Option<RenderBundleDepthStencil>>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetDepthStencil<CS>>where
CS::DepthStencil: DepthStencilIsEmpty,
pub fn maybe_depth_stencil(
self,
depth_stencil: impl Nested<Option<RenderBundleDepthStencil>>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetDepthStencil<CS>>where
CS::DepthStencil: DepthStencilIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::depth_stencil. Optional, defaults to None.
Sourcepub fn sample_count(
self,
sample_count: u32,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetSampleCount<CS>>where
CS::SampleCount: SampleCountIsEmpty,
pub fn sample_count(
self,
sample_count: u32,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetSampleCount<CS>>where
CS::SampleCount: SampleCountIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::sample_count. Optional, defaults to 0u32.
Sourcepub fn multiview(
self,
multiview: NonZeroU32,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetMultiview<CS>>where
CS::Multiview: MultiviewIsEmpty,
pub fn multiview(
self,
multiview: NonZeroU32,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetMultiview<CS>>where
CS::Multiview: MultiviewIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::multiview. Optional, defaults to None.
Sourcepub fn maybe_multiview(
self,
multiview: Option<NonZeroU32>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetMultiview<CS>>where
CS::Multiview: MultiviewIsEmpty,
pub fn maybe_multiview(
self,
multiview: Option<NonZeroU32>,
) -> RenderBundleEncoderDescriptorBuilder<'a, SetMultiview<CS>>where
CS::Multiview: MultiviewIsEmpty,
Setter for wgpu::RenderBundleEncoderDescriptor::multiview. Optional, defaults to None.