Struct vulkano::descriptor::descriptor_set::DescriptorWrite
source · pub struct DescriptorWrite { /* private fields */ }
Expand description
Represents a single write entry to a descriptor set.
Use the various constructors to build a DescriptorWrite
. While it is safe to build a
DescriptorWrite
, it is unsafe to actually use it to write to a descriptor set.
Implementations
sourceimpl DescriptorWrite
impl DescriptorWrite
pub fn storage_image<I>(
binding: u32,
array_element: u32,
image: &I
) -> DescriptorWritewhere
I: ImageViewAccess,
pub fn sampler(
binding: u32,
array_element: u32,
sampler: &Arc<Sampler>
) -> DescriptorWrite
pub fn sampled_image<I>(
binding: u32,
array_element: u32,
image: &I
) -> DescriptorWritewhere
I: ImageViewAccess,
pub fn combined_image_sampler<I>(
binding: u32,
array_element: u32,
sampler: &Arc<Sampler>,
image: &I
) -> DescriptorWritewhere
I: ImageViewAccess,
pub fn uniform_texel_buffer<'a, F, B>(
binding: u32,
array_element: u32,
view: &BufferView<F, B>
) -> DescriptorWritewhere
B: BufferAccess,
pub fn storage_texel_buffer<'a, F, B>(
binding: u32,
array_element: u32,
view: &BufferView<F, B>
) -> DescriptorWritewhere
B: BufferAccess,
pub unsafe fn uniform_buffer<B>(
binding: u32,
array_element: u32,
buffer: &B
) -> DescriptorWritewhere
B: BufferAccess,
pub unsafe fn storage_buffer<B>(
binding: u32,
array_element: u32,
buffer: &B
) -> DescriptorWritewhere
B: BufferAccess,
pub unsafe fn dynamic_uniform_buffer<B>(
binding: u32,
array_element: u32,
buffer: &B
) -> DescriptorWritewhere
B: BufferAccess,
pub unsafe fn dynamic_storage_buffer<B>(
binding: u32,
array_element: u32,
buffer: &B
) -> DescriptorWritewhere
B: BufferAccess,
pub fn input_attachment<I>(
binding: u32,
array_element: u32,
image: &I
) -> DescriptorWritewhere
I: ImageViewAccess,
sourcepub fn ty(&self) -> DescriptorType
pub fn ty(&self) -> DescriptorType
Returns the type corresponding to this write.
Auto Trait Implementations
impl RefUnwindSafe for DescriptorWrite
impl Send for DescriptorWrite
impl Sync for DescriptorWrite
impl Unpin for DescriptorWrite
impl UnwindSafe for DescriptorWrite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.