pub struct DescriptorPointer {
pub set: VkDescriptorSet,
pub binding: u32,
pub array_offset: u32,
}
Expand description
Pointer for descriptor array in set
Fields§
§set: VkDescriptorSet
§binding: u32
§array_offset: u32
Implementations§
Source§impl DescriptorPointer
impl DescriptorPointer
pub const fn new(set: VkDescriptorSet, binding: u32) -> Self
pub const fn array_offset(self, offset: u32) -> Self
pub const fn write<'r>( self, contents: DescriptorContents<'r>, ) -> DescriptorSetWriteInfo<'r>
pub const fn copy( self, count: u32, dest: DescriptorPointer, ) -> DescriptorSetCopyInfo
pub fn write_continuous_bindings<'r>( self, contents: impl IntoIterator<Item = DescriptorContents<'r>>, ) -> impl Iterator<Item = DescriptorSetWriteInfo<'r>>
Trait Implementations§
Source§impl Clone for DescriptorPointer
impl Clone for DescriptorPointer
Source§fn clone(&self) -> DescriptorPointer
fn clone(&self) -> DescriptorPointer
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DescriptorPointer
impl RefUnwindSafe for DescriptorPointer
impl !Send for DescriptorPointer
impl !Sync for DescriptorPointer
impl Unpin for DescriptorPointer
impl UnwindSafe for DescriptorPointer
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