Struct gfx::pso::AccessInfo
source · 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>where
R: Clone + Resources,
impl<R> Clone for AccessInfo<R>where R: Clone + Resources,
source§fn clone(&self) -> AccessInfo<R>
fn clone(&self) -> AccessInfo<R>
Returns a copy 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> PartialEq<AccessInfo<R>> for AccessInfo<R>where
R: PartialEq<R> + Resources,
impl<R> PartialEq<AccessInfo<R>> for AccessInfo<R>where R: PartialEq<R> + Resources,
source§fn eq(&self, other: &AccessInfo<R>) -> bool
fn eq(&self, other: &AccessInfo<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.