pub struct Image { /* private fields */ }
Expand description
An image object bound with a memory object.
Implementations§
Source§impl Image
impl Image
pub fn bound( r: UnboundedStandaloneImage, mem: &SharedMemoryBlock, offset: u64, ) -> Result<Self>
pub const fn format(&self) -> PixelFormat
pub const fn offset_on_memory(&self) -> u64
Trait Implementations§
Source§impl DeviceChildHandle for Image
impl DeviceChildHandle for Image
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl Image for Image
impl Image for Image
fn dimension(&self) -> VkImageViewType
Source§fn sparse_requirement_count(&self) -> u32
fn sparse_requirement_count(&self) -> u32
Query a count of the memory requirements for a sparse image
Source§fn sparse_requirements(
&self,
sink: &mut [VkSparseImageMemoryRequirements],
) -> u32
fn sparse_requirements( &self, sink: &mut [VkSparseImageMemoryRequirements], ) -> u32
Query the memory requirements for a sparse image
Source§fn sparse_requirements_alloc(&self) -> Vec<VkSparseImageMemoryRequirements>
fn sparse_requirements_alloc(&self) -> Vec<VkSparseImageMemoryRequirements>
Query the memory requirements for a sparse image
Source§fn layout_info(&self, subresource: &VkImageSubresource) -> VkSubresourceLayout
fn layout_info(&self, subresource: &VkImageSubresource) -> VkSubresourceLayout
Retrieve information about an image subresource
fn memory_barrier( &self, subresource_range: VkImageSubresourceRange, trans: LayoutTransition, ) -> ImageMemoryBarrier
fn memory_barrier2<'r>( &'r self, subresource_range: VkImageSubresourceRange, ) -> ImageMemoryBarrier2<'r>
Auto Trait Implementations§
impl Freeze for Image
impl !RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more