[−][src]Struct nobs_vkpipes::descriptor::writes::DescriptorImageInfoBuilder
Builder for a descriptor image info to write an image binding
Default initialized to
- image view:
vk::NULL_HANDLE
- sampler:
vk::NULL_HANDLE
- layout:
vk::IMAGE_LAYOUT_UNDEFINED
Methods
impl DescriptorImageInfoBuilder
[src]
pub fn with_layout(layout: ImageLayout) -> DescriptorImageInfoBuilder
[src]
Create builder with the specified image layout and vk::NULL_HANDLE
s for image view and sampler
pub fn set(
self,
layout: ImageLayout,
image_view: ImageView,
sampler: Sampler
) -> DescriptorImageInfoBuilder
[src]
self,
layout: ImageLayout,
image_view: ImageView,
sampler: Sampler
) -> DescriptorImageInfoBuilder
Sets the complete configuration
Arguments
layout
- layout of the imageimage_view
- image view to be boundsampler
- sampler used for the image
pub fn layout(self, layout: ImageLayout) -> DescriptorImageInfoBuilder
[src]
Sets the layout of the bound image view
pub fn image(self, view: ImageView) -> DescriptorImageInfoBuilder
[src]
Sets the image view to be bound
pub fn sampler(self, sampler: Sampler) -> DescriptorImageInfoBuilder
[src]
Sets the sampler to be bound
pub fn get(self) -> DescriptorImageInfo
[src]
Gets the configured vk::DescriptorImageInfo
, consumes the builder
Trait Implementations
impl Default for DescriptorImageInfoBuilder
[src]
Auto Trait Implementations
impl Send for DescriptorImageInfoBuilder
impl Sync for DescriptorImageInfoBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,