pub struct Buffer(/* private fields */);
Expand description
A buffer object bound with a memory object.
Implementations§
Source§impl Buffer
impl Buffer
pub fn bound( b: UnboundedStandaloneBuffer, mem: &SharedMemoryBlock, offset: u64, ) -> Result<Self>
pub fn guard_map<R>( &self, range: Range<u64>, f: impl FnOnce(&MappedMemory<'_, ExclusiveLockedSharedMemoryBlock<'_>>) -> R, ) -> Result<R>
Source§impl Buffer
impl Buffer
Sourcepub const fn memory(&self) -> &SharedMemoryBlock
pub const fn memory(&self) -> &SharedMemoryBlock
Reference to a memory object bound with this object.
Source§impl Buffer
impl Buffer
pub const fn with_offset(self, offset: usize) -> BufferView<Self>
pub const fn with_offset_ref(&self, offset: usize) -> BufferView<&Self>
Source§impl Buffer
impl Buffer
pub const fn with_dev_offset(self, offset: DeviceSize) -> DeviceBufferView<Self>
pub const fn with_dev_offset_ref( &self, offset: DeviceSize, ) -> DeviceBufferView<&Self>
Trait Implementations§
Source§impl DeviceChildHandle for Buffer
impl DeviceChildHandle for Buffer
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl TransferrableBufferResource for Buffer
impl TransferrableBufferResource for Buffer
fn grouping_key(&self) -> u64
fn raw_handle(&self) -> VkBuffer
Source§impl VkHandle for Buffer
impl VkHandle for Buffer
type Handle = VkBuffer
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
impl Buffer for Buffer
Auto Trait Implementations§
impl Freeze for Buffer
impl !RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl !UnwindSafe for Buffer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more