pub struct MkDeviceBuffer<B: MkGpuBackend> { /* private fields */ }Expand description
A device-local GPU buffer.
Implementations§
Source§impl<B: MkGpuBackend> MkDeviceBuffer<B>
impl<B: MkGpuBackend> MkDeviceBuffer<B>
Sourcepub fn usage(&self) -> MkBufferUsage
pub fn usage(&self) -> MkBufferUsage
Get the buffer usage flags.
Sourcepub fn handle(&self) -> &B::BufferHandle
pub fn handle(&self) -> &B::BufferHandle
Get the native buffer handle.
Auto Trait Implementations§
impl<B> Freeze for MkDeviceBuffer<B>
impl<B> RefUnwindSafe for MkDeviceBuffer<B>
impl<B> Send for MkDeviceBuffer<B>
impl<B> Sync for MkDeviceBuffer<B>
impl<B> Unpin for MkDeviceBuffer<B>
impl<B> UnwindSafe for MkDeviceBuffer<B>
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