[−][src]Struct bedrock::resources::ImageView
Opaque handle to a image view object
Methods from Deref<Target = Image>
pub fn format(&self) -> VkFormat
[src]
The pixel format of an image
pub fn size(&self) -> &Extent3D
[src]
The size of an image
pub fn create_view(
&self,
format: Option<VkFormat>,
vtype: Option<VkImageViewType>,
cmap: &ComponentMapping,
subresource_range: &ImageSubresourceRange
) -> Result<ImageView>
[src]
&self,
format: Option<VkFormat>,
vtype: Option<VkImageViewType>,
cmap: &ComponentMapping,
subresource_range: &ImageSubresourceRange
) -> Result<ImageView>
Create an image view
pub fn image_subresource_layout(
&self,
subres_aspect: AspectMask,
subres_mip_level: u32,
subres_array_layer: u32
) -> VkSubresourceLayout
[src]
&self,
subres_aspect: AspectMask,
subres_mip_level: u32,
subres_array_layer: u32
) -> VkSubresourceLayout
Retrieve information about an image subresource
Subresource: (aspect
, mipLevel
, arrayLayer
)
pub fn sparse_requirements(&self) -> Vec<VkSparseImageMemoryRequirements>
[src]
Query the memory requirements for a sparse image
Trait Implementations
impl Clone for ImageView
[src]
impl Deref for ImageView
[src]
impl DeviceChild for ImageView
[src]
impl VkHandle for ImageView
[src]
type Handle = VkImageView
fn native_ptr(&self) -> VkImageView
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ImageView
impl !Send for ImageView
impl !Sync for ImageView
impl Unpin for ImageView
impl !UnwindSafe for ImageView
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,
fn borrow_mut(&mut self) -> &mut T
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,