pub struct BufferDescriptor {
pub buffer: u64,
pub offset: usize,
pub capacity: usize,
pub access: u32,
pub stage: u32,
}Expand description
A nonowning Vulkan buffer descriptor. Values remain valid only while the tensor guard and its device remain alive.
Fields§
§buffer: u64Native VkBuffer handle.
offset: usizeByte offset of the tensor inside the buffer.
capacity: usizeBuffer capacity in bytes.
access: u32Native access flags recorded for the descriptor.
stage: u32Native pipeline-stage flags recorded for the descriptor.
Trait Implementations§
Source§impl Clone for BufferDescriptor
impl Clone for BufferDescriptor
impl Copy for BufferDescriptor
Auto Trait Implementations§
impl Freeze for BufferDescriptor
impl RefUnwindSafe for BufferDescriptor
impl Send for BufferDescriptor
impl Sync for BufferDescriptor
impl Unpin for BufferDescriptor
impl UnsafeUnpin for BufferDescriptor
impl UnwindSafe for BufferDescriptor
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