[−][src]Struct nobs_vulkanism_headless::pipes::descriptor::writes::Writes
Builder for updating a descriptor set
Aggregates vk::DescriptorBufferInfo
s, vk::DescriptorImageInfo
s and vk::BufferView
s that have been configured with buffer
or image or buffer_view.
Methods
impl Writes
[src]
pub fn new(device: u64, dset: u64) -> Writes
[src]
Creates a new builder for the specified descriptor set and device with no writes
Arguments
device
- device handledset
- descriptor set to be updated
pub fn push_buffer(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: DescriptorBufferInfo
)
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: DescriptorBufferInfo
)
Sets the sepecified buffer for the binding, array element and descriptor type
pub fn push_image(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: DescriptorImageInfo
)
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: DescriptorImageInfo
)
Sets the sepecified image for the binding, array element and descriptor type
pub fn push_bufferview(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: u64
)
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
info: u64
)
Sets the sepecified buffer view for the binding, array element and descriptor type
pub fn buffer<F>(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
f: F
) -> &mut Writes where
F: Fn(DescriptorBufferInfoBuilder) -> DescriptorBufferInfoBuilder,
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
f: F
) -> &mut Writes where
F: Fn(DescriptorBufferInfoBuilder) -> DescriptorBufferInfoBuilder,
Adds a new buffer write for the specified binding and array with the builder returned by the lambda
pub fn image<F>(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
f: F
) -> &mut Writes where
F: Fn(DescriptorImageInfoBuilder) -> DescriptorImageInfoBuilder,
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
f: F
) -> &mut Writes where
F: Fn(DescriptorImageInfoBuilder) -> DescriptorImageInfoBuilder,
Adds a new image write for the specified binding and array with the builder returned by the lambda
pub fn buffer_view(
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
view: u64
) -> &mut Writes
[src]
&mut self,
binding: u32,
array_elem: u32,
ty: u32,
view: u64
) -> &mut Writes
Adds a new buffer view write for the specified binding and array
pub fn update(&mut self)
[src]
Updates the descriptor set with the configured writes
Auto Trait Implementations
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 = !
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>,