Struct vulkano::buffer::cpu_access::ReadLock [−][src]
pub struct ReadLock<'a, T: ?Sized + 'a> { /* fields omitted */ }
Expand description
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> !UnwindSafe for ReadLock<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.