Struct ilmenite::image_view::ImtImageView
source · [−]pub struct ImtImageView { /* private fields */ }
Implementations
sourceimpl ImtImageView
impl ImtImageView
pub fn from_storage(
image: Arc<StorageImage>
) -> Result<Arc<Self>, ImageViewCreationError>
pub fn from_immutable(
image: Arc<ImmutableImage>
) -> Result<Arc<Self>, ImageViewCreationError>
pub fn from_sub(
image: Arc<SubImage>
) -> Result<Arc<Self>, ImageViewCreationError>
pub fn from_attachment(
image: Arc<AttachmentImage>
) -> Result<Arc<Self>, ImageViewCreationError>
pub fn dimensions(&self) -> ImageDimensions
Trait Implementations
sourceimpl Debug for ImtImageView
impl Debug for ImtImageView
sourceimpl DeviceOwned for ImtImageView
impl DeviceOwned for ImtImageView
sourceimpl ImageAccess for ImtImageView
impl ImageAccess for ImtImageView
sourcefn inner(&self) -> ImageInner<'_>
fn inner(&self) -> ImageInner<'_>
Returns the inner unsafe image object used by this image.
sourcefn initial_layout_requirement(&self) -> ImageLayout
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
sourcefn final_layout_requirement(&self) -> ImageLayout
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
sourcefn descriptor_layouts(&self) -> Option<ImageDescriptorLayouts>
fn descriptor_layouts(&self) -> Option<ImageDescriptorLayouts>
Returns an ImageDescriptorLayouts
structure specifying the image layout to use
in descriptors of various kinds. Read more
sourcefn conflict_key(&self) -> u64
fn conflict_key(&self) -> u64
Returns a key that uniquely identifies the memory content of the image. Two ranges that potentially overlap in memory must return the same key. Read more
sourcefn current_mip_levels_access(&self) -> Range<u32>
fn current_mip_levels_access(&self) -> Range<u32>
Returns the current mip level that is accessed by the gpu
sourcefn current_array_layers_access(&self) -> Range<u32>
fn current_array_layers_access(&self) -> Range<u32>
Returns the current array layer that is accessed by the gpu
sourcefn try_gpu_lock(
&self,
exclusive_access: bool,
uninitialized_safe: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
fn try_gpu_lock(
&self,
exclusive_access: bool,
uninitialized_safe: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
Locks the resource for usage on the GPU. Returns an error if the lock can’t be acquired. Read more
sourceunsafe fn increase_gpu_lock(&self)
unsafe fn increase_gpu_lock(&self)
Locks the resource for usage on the GPU. Supposes that the resource is already locked, and simply increases the lock by one. Read more
sourceunsafe fn unlock(&self, transitioned_layout: Option<ImageLayout>)
unsafe fn unlock(&self, transitioned_layout: Option<ImageLayout>)
Unlocks the resource previously acquired with try_gpu_lock
or increase_gpu_lock
. Read more
sourcefn mip_levels(&self) -> u32
fn mip_levels(&self) -> u32
Returns the number of mipmap levels of this image.
sourcefn samples(&self) -> SampleCount
fn samples(&self) -> SampleCount
Returns the number of samples of this image.
sourcefn dimensions(&self) -> ImageDimensions
fn dimensions(&self) -> ImageDimensions
Returns the dimensions of the image.
sourcefn format_features(&self) -> &FormatFeatures
fn format_features(&self) -> &FormatFeatures
Returns the features supported by the image’s format.
sourceunsafe fn layout_initialized(&self)
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
fn is_layout_initialized(&self) -> bool
unsafe fn initial_layout(&self) -> ImageLayout
sourceunsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> Arc<ImageAccessFromUndefinedLayout<Self>>
unsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> Arc<ImageAccessFromUndefinedLayout<Self>>
Wraps around this ImageAccess
and returns an identical ImageAccess
but whose initial
layout requirement is either Undefined
or Preinitialized
. Read more
sourceimpl ImageViewAbstract for ImtImageView
impl ImageViewAbstract for ImtImageView
sourcefn image(&self) -> Arc<dyn ImageAccess>
fn image(&self) -> Arc<dyn ImageAccess>
Returns the wrapped image that this image view was created from.
sourcefn array_layers(&self) -> Range<u32>
fn array_layers(&self) -> Range<u32>
Returns the range of array layers of the wrapped image that this view exposes.
sourcefn aspects(&self) -> &ImageAspects
fn aspects(&self) -> &ImageAspects
Returns the aspects of the wrapped image that this view exposes.
sourcefn component_mapping(&self) -> ComponentMapping
fn component_mapping(&self) -> ComponentMapping
Returns the component mapping of this view.
sourcefn filter_cubic(&self) -> bool
fn filter_cubic(&self) -> bool
sourcefn filter_cubic_minmax(&self) -> bool
fn filter_cubic_minmax(&self) -> bool
sourcefn format(&self) -> Option<Format>
fn format(&self) -> Option<Format>
Returns the format of this view. This can be different from the parent’s format.
sourcefn format_features(&self) -> &FormatFeatures
fn format_features(&self) -> &FormatFeatures
Returns the features supported by the image view’s format.
sourcefn mip_levels(&self) -> Range<u32>
fn mip_levels(&self) -> Range<u32>
Returns the range of mip levels of the wrapped image that this view exposes.
sourcefn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>
fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>
Returns the sampler YCbCr conversion that this image view was created with, if any.
sourcefn view_type(&self) -> ImageViewType
fn view_type(&self) -> ImageViewType
Returns the ImageViewType
of this image view.
sourcefn usage(&self) -> &ImageUsage
fn usage(&self) -> &ImageUsage
Returns the usage of the image view.
sourceimpl VulkanObject for ImtImageView
impl VulkanObject for ImtImageView
sourcefn internal_object(&self) -> ImageView
fn internal_object(&self) -> ImageView
Returns a reference to the object.
Auto Trait Implementations
impl !RefUnwindSafe for ImtImageView
impl Send for ImtImageView
impl Sync for ImtImageView
impl Unpin for ImtImageView
impl !UnwindSafe for ImtImageView
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more