[go: up one dir, main page]

Struct AccessGuard

Source
pub struct AccessGuard<'a, R: Resources> { /* private fields */ }

Implementations§

Source§

impl<'a, R: Resources> AccessGuard<'a, R>

Source

pub fn access_mapped_reads(&mut self) -> AccessGuardBuffers<'_, R>

Returns the mapped buffers that The GPU will read from, with exclusive acces to their mapping

Source

pub fn access_mapped_writes(&mut self) -> AccessGuardBuffers<'_, R>

Returns the mapped buffers that The GPU will write to, with exclusive acces to their mapping

Source

pub fn access_mapped(&mut self) -> AccessGuardBuffersChain<'_, R>

Methods from Deref<Target = AccessInfo<R>>§

Source

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

Returns the mapped buffers that The GPU will read from

Source

pub fn mapped_writes(&self) -> AccessInfoBuffers<'_, 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) -> SubmissionResult<AccessGuard<'_, R>>

Takes all the accesses necessary for submission

Trait Implementations§

Source§

impl<'a, R: Debug + Resources> Debug for AccessGuard<'a, R>

Source§

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

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

impl<'a, R: Resources> Deref for AccessGuard<'a, R>

Source§

type Target = AccessInfo<R>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<'a, R: Resources> Drop for AccessGuard<'a, R>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a, R> Freeze for AccessGuard<'a, R>

§

impl<'a, R> !RefUnwindSafe for AccessGuard<'a, R>

§

impl<'a, R> Send for AccessGuard<'a, R>

§

impl<'a, R> Sync for AccessGuard<'a, R>

§

impl<'a, R> Unpin for AccessGuard<'a, R>

§

impl<'a, R> !UnwindSafe for AccessGuard<'a, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.