Struct voodoo::ImageBuilder
[−]
[src]
pub struct ImageBuilder<'b> { /* fields omitted */ }
A builder for Image
.
Methods
impl<'b> ImageBuilder<'b>
[src]
fn new() -> ImageBuilder<'b>
[src]
Returns a new render pass builder.
fn flags<'s>(&'s mut self, flags: ImageCreateFlags) -> &'s mut ImageBuilder<'b>
[src]
flags is a bitmask of VkImageCreateFlagBits describing additional parameters of the image.
fn image_type<'s>(
&'s mut self,
image_type: ImageType
) -> &'s mut ImageBuilder<'b>
[src]
&'s mut self,
image_type: ImageType
) -> &'s mut ImageBuilder<'b>
imageType is a VkImageType value specifying the basic dimensionality of the image. Layers in array textures do not count as a dimension for the purposes of the image type.
fn format<'s>(&'s mut self, format: Format) -> &'s mut ImageBuilder<'b>
[src]
format is a VkFormat describing the format and type of the data elements that will be contained in the image.
fn extent<'s>(&'s mut self, extent: Extent3d) -> &'s mut ImageBuilder<'b>
[src]
extent is a VkExtent3D describing the number of data elements in each dimension of the base level.
fn mip_levels<'s>(&'s mut self, mip_levels: u32) -> &'s mut ImageBuilder<'b>
[src]
mipLevels describes the number of levels of detail available for minified sampling of the image.
fn array_layers<'s>(&'s mut self, array_layers: u32) -> &'s mut ImageBuilder<'b>
[src]
arrayLayers is the number of layers in the image.
fn samples<'s>(
&'s mut self,
samples: SampleCountFlags
) -> &'s mut ImageBuilder<'b>
[src]
&'s mut self,
samples: SampleCountFlags
) -> &'s mut ImageBuilder<'b>
samples is the number of sub-data element samples in the image as defined in VkSampleCountFlagBits. See Multisampling.
fn tiling<'s>(&'s mut self, tiling: ImageTiling) -> &'s mut ImageBuilder<'b>
[src]
tiling is a VkImageTiling value specifying the tiling arrangement of the data elements in memory.
fn usage<'s>(&'s mut self, usage: ImageUsageFlags) -> &'s mut ImageBuilder<'b>
[src]
usage is a bitmask of VkImageUsageFlagBits describing the intended usage of the image.
[src]
sharingMode is a VkSharingMode value specifying the sharing mode of the image when it will be accessed by multiple queue families.
fn queue_family_indices<'s, 'p>(
&'s mut self,
queue_family_indices: &'p [u32]
) -> &'s mut ImageBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
queue_family_indices: &'p [u32]
) -> &'s mut ImageBuilder<'b> where
'p: 'b,
queueFamilyIndexCount is the number of entries in the pQueueFamilyIndices array. pQueueFamilyIndices is a list of queue families that will access this image (ignored if sharingMode is not VK_SHARING_MODE_CONCURRENT).
fn initial_layout<'s>(
&'s mut self,
initial_layout: ImageLayout
) -> &'s mut ImageBuilder<'b>
[src]
&'s mut self,
initial_layout: ImageLayout
) -> &'s mut ImageBuilder<'b>
initialLayout is a VkImageLayout value specifying the initial VkImageLayout of all image subresources of the image. See Image Layouts.
fn build(&self, device: Device) -> VdResult<Image>
[src]
Trait Implementations
impl<'b> Debug for ImageBuilder<'b>
[src]
impl<'b> Clone for ImageBuilder<'b>
[src]
fn clone(&self) -> ImageBuilder<'b>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more