Struct gfx::pso::AccessInfo
[−]
pub struct AccessInfo<R> where
R: Resources, { /* fields omitted */ }
Informations about what is accessed by a bunch of commands.
Methods
impl<R> AccessInfo<R> where
R: Resources,
R: Resources,
fn new() -> AccessInfo<R>
Creates empty access informations
fn clear(&mut self)
Clear access informations
fn buffer_read(&mut self, buffer: &RawBuffer<R>)
Register a buffer read access
fn buffer_write(&mut self, buffer: &RawBuffer<R>)
Register a buffer write access
fn mapped_reads(&self) -> Iter<RawBuffer<R>>
Returns the mapped buffers that The GPU will read from
fn mapped_writes(&self) -> Iter<RawBuffer<R>>
Returns the mapped buffers that The GPU will write to
fn has_mapped_reads(&self) -> bool
Is there any mapped buffer reads ?
fn has_mapped_writes(&self) -> bool
Is there any mapped buffer writes ?
fn take_accesses(&self) -> Result<AccessGuard<R>, SubmissionError>
Takes all the accesses necessary for submission
Trait Implementations
impl<R> Debug for AccessInfo<R> where
R: Resources + Debug,
R: Resources + Debug,