Struct screen_13::graph::BufferBinding
source · [−]pub struct BufferBinding<P> where
P: SharedPointerKind, { /* private fields */ }Implementations
sourceimpl<P> BufferBinding<P> where
P: SharedPointerKind,
impl<P> BufferBinding<P> where
P: SharedPointerKind,
pub fn new(item: Buffer<P>) -> Self
sourcepub fn access_inner(
&mut self,
access: AccessType
) -> (&Buffer<P>, AccessType, Option<Subresource>)
pub fn access_inner(
&mut self,
access: AccessType
) -> (&Buffer<P>, AccessType, Option<Subresource>)
Allows for direct access to the item inside this binding, without the Shared wrapper. Returns the previous access type and subresource access which you should use to create a barrier for whatever access is actually being done.
sourcepub fn access_inner_mut(
&mut self,
access: AccessType
) -> (&mut Buffer<P>, AccessType, Option<Subresource>)
pub fn access_inner_mut(
&mut self,
access: AccessType
) -> (&mut Buffer<P>, AccessType, Option<Subresource>)
Allows for direct access to the item inside this binding, without the Shared wrapper. Returns the previous access type and subresource access which you should use to create a barrier for whatever access is actually being done.
sourcepub fn access_inner_subresource(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&Buffer<P>, AccessType, Option<Subresource>)
pub fn access_inner_subresource(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&Buffer<P>, AccessType, Option<Subresource>)
Allows for direct access to the item inside this binding, without the Shared wrapper. Returns the previous access type and subresource access which you should use to create a barrier for whatever access is actually being done.
sourcepub fn access_inner_subresource_mut(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&mut Buffer<P>, AccessType, Option<Subresource>)
pub fn access_inner_subresource_mut(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&mut Buffer<P>, AccessType, Option<Subresource>)
Allows for direct access to the item inside this binding, without the Shared wrapper. Returns the previous access type and subresource access which you should use to create a barrier for whatever access is actually being done.
sourcepub fn get_mut(&mut self) -> Option<&mut Buffer<P>>
pub fn get_mut(&mut self) -> Option<&mut Buffer<P>>
Returns a mutable borrow only if no other clones of this shared item exist.
Creates a new staticlly shared reference to our binding item. You can’t do anything with this shared reference, but you can hold onto it as long as you like. While the reference is held this binding will stay alive. This is useful for tying the lifetime of this binding to something else, such as a command buffer.
sourceimpl<P> BufferBinding<P> where
P: SharedPointerKind,
impl<P> BufferBinding<P> where
P: SharedPointerKind,
pub fn info(&self) -> &BufferInfo
Trait Implementations
sourceimpl<P> AsRef<Buffer<P>> for BufferBinding<P> where
P: SharedPointerKind,
impl<P> AsRef<Buffer<P>> for BufferBinding<P> where
P: SharedPointerKind,
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for BufferBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for BufferBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> BufferNode<P>
sourceimpl<P: Debug> Debug for BufferBinding<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for BufferBinding<P> where
P: SharedPointerKind,
sourceimpl<'a, P> From<&'a mut BufferBinding<P>> for AnyBufferBinding<'a, P> where
P: SharedPointerKind,
impl<'a, P> From<&'a mut BufferBinding<P>> for AnyBufferBinding<'a, P> where
P: SharedPointerKind,
sourcefn from(binding: &'a mut BufferBinding<P>) -> Self
fn from(binding: &'a mut BufferBinding<P>) -> Self
Performs the conversion.
sourceimpl<P> Unbind<RenderGraph<P>, BufferBinding<P>> for BufferNode<P> where
P: SharedPointerKind + 'static,
impl<P> Unbind<RenderGraph<P>, BufferBinding<P>> for BufferNode<P> where
P: SharedPointerKind + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> BufferBinding<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for BufferBinding<P>
impl<P> !Send for BufferBinding<P>
impl<P> !Sync for BufferBinding<P>
impl<P> Unpin for BufferBinding<P> where
P: Unpin,
impl<P> !UnwindSafe for BufferBinding<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more