pub struct Extent3dBuilder<CS: State> { /* private fields */ }Expand description
Builder for wgpu::Extent3d
Set all required fields and any optional fields, then call build().
Builder field setters:
- width Optional, defaults to
1 - height Optional, defaults to
1 - depth_or_array_layers Optional, defaults to
1
Implementations§
Source§impl Extent3dBuilder<Empty>
impl Extent3dBuilder<Empty>
pub fn new() -> Extent3dBuilder<Empty>
Source§impl<CS: State> Extent3dBuilder<CS>
impl<CS: State> Extent3dBuilder<CS>
Sourcepub fn width(self, width: u32) -> Extent3dBuilder<SetWidth<CS>>where
CS::Width: WidthIsEmpty,
pub fn width(self, width: u32) -> Extent3dBuilder<SetWidth<CS>>where
CS::Width: WidthIsEmpty,
Setter for wgpu::Extent3d::width. Optional, defaults to 1.
Sourcepub fn height(self, height: u32) -> Extent3dBuilder<SetHeight<CS>>where
CS::Height: HeightIsEmpty,
pub fn height(self, height: u32) -> Extent3dBuilder<SetHeight<CS>>where
CS::Height: HeightIsEmpty,
Setter for wgpu::Extent3d::height. Optional, defaults to 1.
Sourcepub fn depth_or_array_layers(
self,
depth_or_array_layers: u32,
) -> Extent3dBuilder<SetDepthOrArrayLayers<CS>>where
CS::DepthOrArrayLayers: DepthOrArrayLayersIsEmpty,
pub fn depth_or_array_layers(
self,
depth_or_array_layers: u32,
) -> Extent3dBuilder<SetDepthOrArrayLayers<CS>>where
CS::DepthOrArrayLayers: DepthOrArrayLayersIsEmpty,
Setter for wgpu::Extent3d::depth_or_array_layers. Optional, defaults to 1.
Trait Implementations§
Auto Trait Implementations§
impl<CS> Freeze for Extent3dBuilder<CS>
impl<CS> RefUnwindSafe for Extent3dBuilder<CS>where
<CS as State>::Width: RefUnwindSafe,
<CS as State>::Height: RefUnwindSafe,
<CS as State>::DepthOrArrayLayers: RefUnwindSafe,
impl<CS> Send for Extent3dBuilder<CS>
impl<CS> Sync for Extent3dBuilder<CS>
impl<CS> Unpin for Extent3dBuilder<CS>
impl<CS> UnwindSafe for Extent3dBuilder<CS>where
<CS as State>::Width: UnwindSafe,
<CS as State>::Height: UnwindSafe,
<CS as State>::DepthOrArrayLayers: UnwindSafe,
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
Mutably borrows from an owned value. Read more