[−][src]Struct vulkano::image::immutable::SubImage
Image whose purpose is to access only a part of one image, for any kind of access We define a part of one image here by a level of mipmap, or a layer of an array The image attribute must be an implementation of ImageAccess The mip_levels_access must be a range showing which mipmaps will be accessed The layer_levels_access must be a range showing which layers will be accessed The layout must be the layout of the image at the beginning and at the end of the command buffer
Implementations
impl SubImage
[src]
pub fn new(
image: Arc<dyn ImageAccess + Sync + Send>,
mip_level: u32,
mip_level_count: u32,
layer_level: u32,
layer_level_count: u32,
layout: ImageLayout
) -> Arc<SubImage>
[src]
image: Arc<dyn ImageAccess + Sync + Send>,
mip_level: u32,
mip_level_count: u32,
layer_level: u32,
layer_level_count: u32,
layout: ImageLayout
) -> Arc<SubImage>
Trait Implementations
impl ImageAccess for SubImage
[src]
pub fn inner(&self) -> ImageInner<'_>
[src]
pub fn initial_layout_requirement(&self) -> ImageLayout
[src]
pub fn final_layout_requirement(&self) -> ImageLayout
[src]
pub fn conflicts_buffer(&self, other: &dyn BufferAccess) -> bool
[src]
pub fn conflicts_image(&self, other: &dyn ImageAccess) -> bool
[src]
pub fn current_miplevels_access(&self) -> Range<u32>
[src]
pub fn current_layer_levels_access(&self) -> Range<u32>
[src]
pub fn conflict_key(&self) -> u64
[src]
pub fn try_gpu_lock(
&self,
exclusive_access: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
[src]
&self,
exclusive_access: bool,
expected_layout: ImageLayout
) -> Result<(), AccessError>
pub unsafe fn increase_gpu_lock(&self)
[src]
pub unsafe fn unlock(&self, new_layout: Option<ImageLayout>)
[src]
pub fn format(&self) -> Format
[src]
pub fn has_color(&self) -> bool
[src]
pub fn has_depth(&self) -> bool
[src]
pub fn has_stencil(&self) -> bool
[src]
pub fn mipmap_levels(&self) -> u32
[src]
pub fn samples(&self) -> u32
[src]
pub fn dimensions(&self) -> ImageDimensions
[src]
pub fn supports_blit_source(&self) -> bool
[src]
pub fn supports_blit_destination(&self) -> bool
[src]
pub unsafe fn layout_initialized(&self)
[src]
pub fn is_layout_initialized(&self) -> bool
[src]
pub unsafe fn preinitialized_layout(&self) -> bool
[src]
pub unsafe fn forced_undefined_initial_layout(
self,
preinitialized: bool
) -> ImageAccessFromUndefinedLayout<Self> where
Self: Sized,
[src]
self,
preinitialized: bool
) -> ImageAccessFromUndefinedLayout<Self> where
Self: Sized,
Auto Trait Implementations
impl !RefUnwindSafe for SubImage
[src]
impl Send for SubImage
[src]
impl Sync for SubImage
[src]
impl Unpin for SubImage
[src]
impl !UnwindSafe for SubImage
[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>,