[−][src]Struct bedrock::resources::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]
size: &Size,
format: VkFormat,
usage: ImageUsage,
initial_layout: ImageLayout
) -> Self
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 ImageFlags
describing 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"]
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]
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>,