pub struct AccessInfo<R>where
R: Resources,{ /* private fields */ }Expand description
Informations about what is accessed by a bunch of commands.
Implementations§
Source§impl<R> AccessInfo<R>where
R: Resources,
impl<R> AccessInfo<R>where
R: Resources,
Sourcepub fn new() -> AccessInfo<R>
pub fn new() -> AccessInfo<R>
Creates empty access informations
Sourcepub fn buffer_read(&mut self, buffer: &RawBuffer<R>)
pub fn buffer_read(&mut self, buffer: &RawBuffer<R>)
Register a buffer read access
Sourcepub fn buffer_write(&mut self, buffer: &RawBuffer<R>)
pub fn buffer_write(&mut self, buffer: &RawBuffer<R>)
Register a buffer write access
Sourcepub fn mapped_reads(&self) -> Iter<'_, RawBuffer<R>>
pub fn mapped_reads(&self) -> Iter<'_, RawBuffer<R>>
Returns the mapped buffers that The GPU will read from
Sourcepub fn mapped_writes(&self) -> Iter<'_, RawBuffer<R>>
pub fn mapped_writes(&self) -> Iter<'_, RawBuffer<R>>
Returns the mapped buffers that The GPU will write to
Sourcepub fn has_mapped_reads(&self) -> bool
pub fn has_mapped_reads(&self) -> bool
Is there any mapped buffer reads ?
Sourcepub fn has_mapped_writes(&self) -> bool
pub fn has_mapped_writes(&self) -> bool
Is there any mapped buffer writes ?
Sourcepub fn take_accesses(&self) -> Result<AccessGuard<'_, R>, SubmissionError>
pub fn take_accesses(&self) -> Result<AccessGuard<'_, R>, SubmissionError>
Takes all the accesses necessary for submission
Trait Implementations§
Source§impl<R> Clone for AccessInfo<R>
impl<R> Clone for AccessInfo<R>
Source§fn clone(&self) -> AccessInfo<R>
fn clone(&self) -> AccessInfo<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R> Debug for AccessInfo<R>
impl<R> Debug for AccessInfo<R>
Source§impl<R> PartialEq for AccessInfo<R>
impl<R> PartialEq for AccessInfo<R>
impl<R> Eq for AccessInfo<R>
impl<R> StructuralPartialEq for AccessInfo<R>where
R: Resources,
Auto Trait Implementations§
impl<R> Freeze for AccessInfo<R>
impl<R> !RefUnwindSafe for AccessInfo<R>
impl<R> Send for AccessInfo<R>
impl<R> Sync for AccessInfo<R>
impl<R> Unpin for AccessInfo<R>
impl<R> !UnwindSafe for AccessInfo<R>
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