Struct ash::vk::WriteDescriptorSet
source · #[repr(C)]pub struct WriteDescriptorSet<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub dst_set: DescriptorSet,
pub dst_binding: u32,
pub dst_array_element: u32,
pub descriptor_count: u32,
pub descriptor_type: DescriptorType,
pub p_image_info: *const DescriptorImageInfo,
pub p_buffer_info: *const DescriptorBufferInfo,
pub p_texel_buffer_view: *const BufferView,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§dst_set: DescriptorSet
§dst_binding: u32
§dst_array_element: u32
§descriptor_count: u32
§descriptor_type: DescriptorType
§p_image_info: *const DescriptorImageInfo
§p_buffer_info: *const DescriptorBufferInfo
§p_texel_buffer_view: *const BufferView
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> WriteDescriptorSet<'a>
impl<'a> WriteDescriptorSet<'a>
pub fn dst_set(self, dst_set: DescriptorSet) -> Self
pub fn dst_binding(self, dst_binding: u32) -> Self
pub fn dst_array_element(self, dst_array_element: u32) -> Self
pub fn descriptor_count(self, descriptor_count: u32) -> Self
pub fn descriptor_type(self, descriptor_type: DescriptorType) -> Self
pub fn image_info(self, image_info: &'a [DescriptorImageInfo]) -> Self
pub fn buffer_info(self, buffer_info: &'a [DescriptorBufferInfo]) -> Self
pub fn texel_buffer_view(self, texel_buffer_view: &'a [BufferView]) -> Self
sourcepub fn push_next<T: ExtendsWriteDescriptorSet + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsWriteDescriptorSet + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for WriteDescriptorSet<'a>
impl<'a> Clone for WriteDescriptorSet<'a>
source§fn clone(&self) -> WriteDescriptorSet<'a>
fn clone(&self) -> WriteDescriptorSet<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for WriteDescriptorSet<'a>
impl<'a> Debug for WriteDescriptorSet<'a>
source§impl Default for WriteDescriptorSet<'_>
impl Default for WriteDescriptorSet<'_>
source§impl<'a> TaggedStructure for WriteDescriptorSet<'a>
impl<'a> TaggedStructure for WriteDescriptorSet<'a>
const STRUCTURE_TYPE: StructureType = StructureType::WRITE_DESCRIPTOR_SET
impl<'a> Copy for WriteDescriptorSet<'a>
impl Send for WriteDescriptorSet<'_>
impl Sync for WriteDescriptorSet<'_>
Auto Trait Implementations§
impl<'a> Freeze for WriteDescriptorSet<'a>
impl<'a> RefUnwindSafe for WriteDescriptorSet<'a>
impl<'a> Unpin for WriteDescriptorSet<'a>
impl<'a> UnwindSafe for WriteDescriptorSet<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more