pub struct ImageCreator(/* private fields */);Implementations§
Source§impl ImageCreator
impl ImageCreator
pub fn new_2d( width: u32, height: u32, format: Format, usage: impl Into<ImageUsageFlags> + Copy, ) -> Self
pub fn new_2d_samples( width: u32, height: u32, format: Format, usage: impl Into<ImageUsageFlags> + Copy, samples: SampleCountFlagBits, ) -> Self
pub fn samples(self, samples: SampleCountFlagBits) -> Self
pub unsafe fn create(self, device: &Device) -> Result<(Image, ImageCreateInfo)>
Trait Implementations§
Source§impl Clone for ImageCreator
impl Clone for ImageCreator
Source§fn clone(&self) -> ImageCreator
fn clone(&self) -> ImageCreator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageCreator
Auto Trait Implementations§
impl !Send for ImageCreator
impl !Sync for ImageCreator
impl Freeze for ImageCreator
impl RefUnwindSafe for ImageCreator
impl Unpin for ImageCreator
impl UnsafeUnpin for ImageCreator
impl UnwindSafe for ImageCreator
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