[][src]Struct bedrock::resources::ImageDesc

pub struct ImageDesc(_);

Builder structure specifying the parameters of a newly created image object

Methods

impl ImageDesc[src]

pub fn new<Size: ImageSize>(
    size: &Size,
    format: VkFormat,
    usage: ImageUsage,
    initial_layout: ImageLayout
) -> Self
[src]

pub fn sharing_queue_families(&mut self, indices: &[u32]) -> &mut Self[src]

A list of queue families that will access this image, or an empty list if no queue families can access this image simultaneously

pub fn sample_counts(&mut self, count_bits: u32) -> &mut Self[src]

The number of sub-data element samples in the image
bitmask of 1(default), 2, 4, 8, 16, 32, 64

pub fn use_linear_tiling(&mut self) -> &mut Self[src]

Sets the tiling arrangement of the data elements in memory as "linear tiling"
default: optimal tiling

pub fn flags(&mut self, opt: ImageFlags) -> &mut Self[src]

A bitmask of ImageFlagsdescribing additional parameters of the image
default: none

pub fn array_layers(&mut self, layers: u32) -> &mut Self[src]

The number of layers in the image
default: 1

pub fn mip_levels(&mut self, levels: u32) -> &mut Self[src]

The number of levels of detail available for minified sampling of the image
default: 1

impl ImageDesc[src]

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

pub fn create(&self, device: &Device) -> Result<Image>[src]

Create an image

Trait Implementations

impl Clone for ImageDesc[src]

impl Debug for ImageDesc[src]

impl Eq for ImageDesc[src]

impl PartialEq<ImageDesc> for ImageDesc[src]

impl StructuralEq for ImageDesc[src]

impl StructuralPartialEq for ImageDesc[src]

Auto Trait Implementations

impl RefUnwindSafe for ImageDesc

impl !Send for ImageDesc

impl !Sync for ImageDesc

impl Unpin for ImageDesc

impl UnwindSafe for ImageDesc

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.