Struct ash::vk::BufferViewCreateInfo
source · #[repr(C)]pub struct BufferViewCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: BufferViewCreateFlags,
pub buffer: Buffer,
pub format: Format,
pub offset: DeviceSize,
pub range: DeviceSize,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: BufferViewCreateFlags
§buffer: Buffer
§format: Format
§offset: DeviceSize
§range: DeviceSize
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> BufferViewCreateInfo<'a>
impl<'a> BufferViewCreateInfo<'a>
pub fn flags(self, flags: BufferViewCreateFlags) -> Self
pub fn buffer(self, buffer: Buffer) -> Self
pub fn format(self, format: Format) -> Self
pub fn offset(self, offset: DeviceSize) -> Self
pub fn range(self, range: DeviceSize) -> Self
sourcepub fn push_next<T: ExtendsBufferViewCreateInfo + ?Sized>(
self,
next: &'a mut T
) -> Self
pub fn push_next<T: ExtendsBufferViewCreateInfo + ?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 BufferViewCreateInfo<'a>
impl<'a> Clone for BufferViewCreateInfo<'a>
source§fn clone(&self) -> BufferViewCreateInfo<'a>
fn clone(&self) -> BufferViewCreateInfo<'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 BufferViewCreateInfo<'a>
impl<'a> Debug for BufferViewCreateInfo<'a>
source§impl Default for BufferViewCreateInfo<'_>
impl Default for BufferViewCreateInfo<'_>
source§impl<'a> TaggedStructure for BufferViewCreateInfo<'a>
impl<'a> TaggedStructure for BufferViewCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_VIEW_CREATE_INFO
impl<'a> Copy for BufferViewCreateInfo<'a>
impl Send for BufferViewCreateInfo<'_>
impl Sync for BufferViewCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for BufferViewCreateInfo<'a>
impl<'a> RefUnwindSafe for BufferViewCreateInfo<'a>
impl<'a> Unpin for BufferViewCreateInfo<'a>
impl<'a> UnwindSafe for BufferViewCreateInfo<'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