[][src]Struct bedrock::resources::Image

pub struct Image(_);

Opaque handle to a image object(constructed via ImageDesc)

Methods

impl Image[src]

pub fn format(&self) -> VkFormat[src]

The pixel format of an image

pub fn size(&self) -> &Extent3D[src]

The size of an image

impl Image[src]

Following methods are enabled with [feature = "Implements"]

pub fn create_view(
    &self,
    format: Option<VkFormat>,
    vtype: Option<VkImageViewType>,
    cmap: &ComponentMapping,
    subresource_range: &ImageSubresourceRange
) -> Result<ImageView>
[src]

Create an image view

pub fn image_subresource_layout(
    &self,
    subres_aspect: AspectMask,
    subres_mip_level: u32,
    subres_array_layer: u32
) -> VkSubresourceLayout
[src]

Retrieve information about an image subresource
Subresource: (aspect, mipLevel, arrayLayer)

impl Image[src]

Following methods are enabled with [feature = "Implements"]

pub fn sparse_requirements(&self) -> Vec<VkSparseImageMemoryRequirements>[src]

Query the memory requirements for a sparse image

Trait Implementations

impl Clone for Image[src]

impl DeviceChild for Image[src]

impl MemoryBound for Image[src]

impl VkHandle for Image[src]

type Handle = VkImage

Auto Trait Implementations

impl !RefUnwindSafe for Image

impl !Send for Image

impl !Sync for Image

impl Unpin for Image

impl !UnwindSafe for Image

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.