Struct vulkano::buffer::cpu_access::ReadLock [−][src]
pub struct ReadLock<'a, T: ?Sized + 'a> { /* fields omitted */ }
Object that can be used to read or write the content of a CpuAccessibleBuffer
.
Note that this object holds a rwlock read guard on the chunk. If another thread tries to access this buffer’s content or tries to submit a GPU command that uses this buffer, it will block.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for ReadLock<'a, T>
impl<'a, T: ?Sized> Send for ReadLock<'a, T>
impl<'a, T: ?Sized> Sync for ReadLock<'a, T>
impl<'a, T: ?Sized> Unpin for ReadLock<'a, T>
impl<'a, T> !UnwindSafe for ReadLock<'a, T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned,
[src]
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned,
[src]