Struct gfx_core::command::AccessInfo
[−]
[src]
pub struct AccessInfo<R: Resources> { /* fields omitted */ }
Informations about what is accessed by a bunch of commands.
Methods
impl<R: Resources> AccessInfo<R>
[src]
pub fn new() -> Self
[src]
Creates empty access informations
pub fn clear(&mut self)
[src]
Clear access informations
pub fn buffer_read(&mut self, buffer: &RawBuffer<R>)
[src]
Register a buffer read access
pub fn buffer_write(&mut self, buffer: &RawBuffer<R>)
[src]
Register a buffer write access
pub fn mapped_reads(&self) -> AccessInfoBuffers<R>
[src]
Returns the mapped buffers that The GPU will read from
pub fn mapped_writes(&self) -> AccessInfoBuffers<R>
[src]
Returns the mapped buffers that The GPU will write to
pub fn has_mapped_reads(&self) -> bool
[src]
Is there any mapped buffer reads ?
pub fn has_mapped_writes(&self) -> bool
[src]
Is there any mapped buffer writes ?
pub fn take_accesses(&self) -> SubmissionResult<AccessGuard<R>>
[src]
Takes all the accesses necessary for submission
Trait Implementations
impl<R: Clone + Resources> Clone for AccessInfo<R>
[src]
fn clone(&self) -> AccessInfo<R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: Debug + Resources> Debug for AccessInfo<R>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<R: Eq + Resources> Eq for AccessInfo<R>
[src]
impl<R: PartialEq + Resources> PartialEq for AccessInfo<R>
[src]
fn eq(&self, __arg_0: &AccessInfo<R>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AccessInfo<R>) -> bool
[src]
This method tests for !=
.