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,

source

pub fn new() -> AccessInfo<R>

Creates empty access informations

source

pub fn clear(&mut self)

Clear access informations

source

pub fn buffer_read(&mut self, buffer: &RawBuffer<R>)

Register a buffer read access

source

pub fn buffer_write(&mut self, buffer: &RawBuffer<R>)

Register a buffer write access

source

pub fn mapped_reads(&self) -> Iter<'_, RawBuffer<R>>

Returns the mapped buffers that The GPU will read from

source

pub fn mapped_writes(&self) -> Iter<'_, RawBuffer<R>>

Returns the mapped buffers that The GPU will write to

source

pub fn has_mapped_reads(&self) -> bool

Is there any mapped buffer reads ?

source

pub fn has_mapped_writes(&self) -> bool

Is there any mapped buffer writes ?

source

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,

source§

fn clone(&self) -> AccessInfo<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<R> Debug for AccessInfo<R>where R: Debug + Resources,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<R> PartialEq<AccessInfo<R>> for AccessInfo<R>where R: PartialEq<R> + Resources,

source§

fn eq(&self, other: &AccessInfo<R>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<R> Eq for AccessInfo<R>where R: Eq + Resources,

source§

impl<R> StructuralEq for AccessInfo<R>where R: Resources,

source§

impl<R> StructuralPartialEq for AccessInfo<R>where R: Resources,

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.