[][src]Struct bedrock::ImageSubref

pub struct ImageSubref<'d>(pub &'d Image, pub VkImageSubresourceRange);

Image Subresource Slice

Methods

impl<'d> ImageSubref<'d>[src]

pub fn color<Levels, Layers>(
    image: &'d Image,
    mip_levels: Levels,
    array_layers: Layers
) -> Self where
    Levels: AnalogNumRange<u32>,
    Layers: AnalogNumRange<u32>, 
[src]

Construct a slice for the Color aspect(VK_IMAGE_ASPECT_COLOR_BIT)

pub fn stencil<Levels, Layers>(
    image: &'d Image,
    mip_levels: Levels,
    array_layers: Layers
) -> Self where
    Levels: AnalogNumRange<u32>,
    Layers: AnalogNumRange<u32>, 
[src]

Construct a slice for the Stencil aspect(VK_IMAGE_ASPECT_STENCIL_BIT)

Trait Implementations

impl<'d> Clone for ImageSubref<'d>[src]

Auto Trait Implementations

impl<'d> !RefUnwindSafe for ImageSubref<'d>

impl<'d> !Send for ImageSubref<'d>

impl<'d> !Sync for ImageSubref<'d>

impl<'d> Unpin for ImageSubref<'d>

impl<'d> !UnwindSafe for ImageSubref<'d>

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.