pub struct AccessInfo<R: Resources> { /* private fields */ }Expand description
Informations about what is accessed by a bunch of commands.
Implementations§
Source§impl<R: Resources> AccessInfo<R>
impl<R: Resources> AccessInfo<R>
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) -> AccessInfoBuffers<'_, R>
pub fn mapped_reads(&self) -> AccessInfoBuffers<'_, R>
Returns the mapped buffers that The GPU will read from
Sourcepub fn mapped_writes(&self) -> AccessInfoBuffers<'_, R>
pub fn mapped_writes(&self) -> AccessInfoBuffers<'_, 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) -> SubmissionResult<AccessGuard<'_, R>>
pub fn take_accesses(&self) -> SubmissionResult<AccessGuard<'_, R>>
Takes all the accesses necessary for submission
Trait Implementations§
Source§impl<R: Clone + Resources> Clone for AccessInfo<R>
impl<R: Clone + Resources> 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 moreimpl<R: Eq + Resources> Eq for AccessInfo<R>
impl<R: Resources> StructuralPartialEq for AccessInfo<R>
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