pub struct ImageViewBuilder<I: Image>(/* private fields */);Implementations§
Source§impl<I: Image> ImageViewBuilder<I>
impl<I: Image> ImageViewBuilder<I>
pub fn new(source: I, subresource_range: VkImageSubresourceRange) -> Self
pub const fn with_format_mutation(self, format: VkFormat) -> Self
pub const fn with_mapping(self, mapping: VkComponentMapping) -> Self
pub const fn with_dimension(self, dimension: VkImageViewType) -> Self
Sourcepub fn create(self) -> Result<ImageViewObject<I>>where
I: DeviceChild,
pub fn create(self) -> Result<ImageViewObject<I>>where
I: DeviceChild,
Create a new image view from an existing image
§Failure
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORYVK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR
Auto Trait Implementations§
impl<I> Freeze for ImageViewBuilder<I>where
I: Freeze,
impl<I> !RefUnwindSafe for ImageViewBuilder<I>
impl<I> !Send for ImageViewBuilder<I>
impl<I> !Sync for ImageViewBuilder<I>
impl<I> Unpin for ImageViewBuilder<I>where
I: Unpin,
impl<I> !UnwindSafe for ImageViewBuilder<I>
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