pub struct ImtImageView { /* private fields */ }

Implementations§

source§

impl ImtImageView

source

pub fn from_storage( image: Arc<StorageImage> ) -> Result<Arc<Self>, ImageViewCreationError>

Create a ImtImageView from a vulkano StorageImage.

source

pub fn from_attachment( image: Arc<AttachmentImage> ) -> Result<Arc<Self>, ImageViewCreationError>

Create a ImtImageView from a vulkano AttachmentImage.

source

pub fn image_view_ref(&self) -> &ImageView<ImtImageVarient>

source

pub fn dimensions(&self) -> ImageDimensions

Fetch the dimensions of this image.

Trait Implementations§

source§

impl Debug for ImtImageView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DeviceOwned for ImtImageView

source§

fn device(&self) -> &Arc<Device>

Returns the device that owns Self.
source§

impl ImageAccess for ImtImageView

source§

fn inner(&self) -> ImageInner<'_>

Returns the inner unsafe image object used by this image.
source§

fn initial_layout_requirement(&self) -> ImageLayout

Returns the layout that the image has when it is first used in a primary command buffer. Read more
source§

fn final_layout_requirement(&self) -> ImageLayout

Returns the layout that the image must be returned to before the end of the command buffer. Read more
source§

fn descriptor_layouts(&self) -> Option<ImageDescriptorLayouts>

Returns an ImageDescriptorLayouts structure specifying the image layout to use in descriptors of various kinds. Read more
source§

unsafe fn layout_initialized(&self)

When images are created their memory layout is initially Undefined or Preinitialized. This method allows the image memory barrier creation process to signal when an image has been transitioned out of its initial Undefined or Preinitialized state. This allows vulkano to avoid creating unnecessary image memory barriers between future uses of the image. Read more
source§

fn is_layout_initialized(&self) -> bool

source§

fn dimensions(&self) -> ImageDimensions

Returns the dimensions of the image.
source§

fn format(&self) -> Format

Returns the format of this image.
source§

fn format_features(&self) -> FormatFeatures

Returns the features supported by the image’s format.
source§

fn mip_levels(&self) -> u32

Returns the number of mipmap levels of this image.
source§

fn samples(&self) -> SampleCount

Returns the number of samples of this image.
source§

fn usage(&self) -> ImageUsage

Returns the usage the image was created with.
source§

fn stencil_usage(&self) -> ImageUsage

Returns the stencil usage the image was created with.
source§

fn subresource_layers(&self) -> ImageSubresourceLayers

Returns an ImageSubresourceLayers covering the first mip level of the image. All aspects of the image are selected, or plane0 if the image is multi-planar.
source§

fn subresource_range(&self) -> ImageSubresourceRange

Returns an ImageSubresourceRange covering the whole image. If the image is multi-planar, only the color aspect is selected.
source§

fn initial_layout(&self) -> ImageLayout

source§

unsafe fn forced_undefined_initial_layout( self, preinitialized: bool ) -> Arc<ImageAccessFromUndefinedLayout<Self>>where Self: Sized,

Wraps around this ImageAccess and returns an identical ImageAccess but whose initial layout requirement is either Undefined or Preinitialized.
source§

impl ImageViewAbstract for ImtImageView

source§

fn image(&self) -> Arc<dyn ImageAccess>

Returns the wrapped image that this image view was created from.
source§

fn component_mapping(&self) -> ComponentMapping

Returns the component mapping of this view.
source§

fn filter_cubic(&self) -> bool

Returns whether the image view supports sampling with a Cubic mag_filter or min_filter.
source§

fn filter_cubic_minmax(&self) -> bool

Returns whether the image view supports sampling with a Cubic mag_filter or min_filter, and with a Min or Max reduction_mode.
source§

fn format(&self) -> Option<Format>

Returns the format of this view. This can be different from the parent’s format.
source§

fn format_features(&self) -> FormatFeatures

Returns the features supported by the image view’s format.
source§

fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>

Returns the sampler YCbCr conversion that this image view was created with, if any.
source§

fn subresource_range(&self) -> &ImageSubresourceRange

Returns the subresource range of the wrapped image that this view exposes.
source§

fn usage(&self) -> ImageUsage

Returns the usage of the image view.
source§

fn view_type(&self) -> ImageViewType

Returns the ImageViewType of this image view.
source§

fn dimensions(&self) -> ImageDimensions

Returns the dimensions of this view.
source§

impl PartialEq for ImtImageView

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl VulkanObject for ImtImageView

§

type Handle = ImageView

The type of the object.
source§

fn handle(&self) -> ImageView

Returns the raw Vulkan handle of the object.
source§

impl Eq for ImtImageView

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.