[−][src]Struct vulkano::image::sys::UnsafeImageView
Methods
impl UnsafeImageView
[src]
pub unsafe fn raw(
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
See the docs of new().
pub unsafe fn new(
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> UnsafeImageView
[src]
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> UnsafeImageView
Creates a new view from an image.
Note that you must create the view with identity swizzling if you want to use this view as a framebuffer attachment.
Panic
- Panics if
mipmap_levels
orarray_layers
is out of range of the image. - Panics if the view types doesn't match the dimensions of the image (for example a 2D view from a 3D image).
- Panics if trying to create a cubemap with a number of array layers different from 6.
- Panics if trying to create a cubemap array with a number of array layers not a multiple of 6.
- Panics if the device or host ran out of memory.
pub fn format(&self) -> Format
[src]
pub fn usage_transfer_source(&self) -> bool
[src]
pub fn usage_transfer_destination(&self) -> bool
[src]
pub fn usage_sampled(&self) -> bool
[src]
pub fn usage_storage(&self) -> bool
[src]
pub fn usage_color_attachment(&self) -> bool
[src]
pub fn usage_depth_stencil_attachment(&self) -> bool
[src]
pub fn usage_transient_attachment(&self) -> bool
[src]
pub fn usage_input_attachment(&self) -> bool
[src]
Trait Implementations
impl VulkanObject for UnsafeImageView
[src]
type Object = ImageView
The type of the object.
const TYPE: DebugReportObjectTypeEXT
[src]
fn internal_object(&self) -> ImageView
[src]
impl Drop for UnsafeImageView
[src]
impl Debug for UnsafeImageView
[src]
Auto Trait Implementations
impl Send for UnsafeImageView
impl Unpin for UnsafeImageView
impl Sync for UnsafeImageView
impl UnwindSafe for UnsafeImageView
impl RefUnwindSafe for UnsafeImageView
Blanket Implementations
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,