[−][src]Struct vulkano::image::sys::UnsafeImageView
Implementations
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 Debug for UnsafeImageView
[src]
impl Drop for UnsafeImageView
[src]
impl Eq for UnsafeImageView
[src]
impl Hash for UnsafeImageView
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UnsafeImageView> for UnsafeImageView
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl VulkanObject for UnsafeImageView
[src]
type Object = ImageView
The type of the object.
pub const TYPE: ObjectType
[src]
pub fn internal_object(&self) -> ImageView
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnsafeImageView
[src]
impl Send for UnsafeImageView
[src]
impl Sync for UnsafeImageView
[src]
impl Unpin for UnsafeImageView
[src]
impl UnwindSafe for UnsafeImageView
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,