Struct screen_13::graph::ImageBinding
source · [−]pub struct ImageBinding<P> where
P: SharedPointerKind, { /* private fields */ }Implementations
sourceimpl<P> ImageBinding<P> where
P: SharedPointerKind,
impl<P> ImageBinding<P> where
P: SharedPointerKind,
pub fn new(item: Image<P>) -> Self
sourcepub fn access_inner(
&mut self,
access: AccessType
) -> (&Image<P>, AccessType, Option<Subresource>)
pub fn access_inner(
&mut self,
access: AccessType
) -> (&Image<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 Image<P>, AccessType, Option<Subresource>)
pub fn access_inner_mut(
&mut self,
access: AccessType
) -> (&mut Image<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>>
) -> (&Image<P>, AccessType, Option<Subresource>)
pub fn access_inner_subresource(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&Image<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 Image<P>, AccessType, Option<Subresource>)
pub fn access_inner_subresource_mut(
&mut self,
access: AccessType,
subresource: impl Into<Option<Subresource>>
) -> (&mut Image<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 Image<P>>
pub fn get_mut(&mut self) -> Option<&mut Image<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> ImageBinding<P> where
P: SharedPointerKind,
impl<P> ImageBinding<P> where
P: SharedPointerKind,
Trait Implementations
sourceimpl<P> AsRef<Image<P>> for ImageBinding<P> where
P: SharedPointerKind,
impl<P> AsRef<Image<P>> for ImageBinding<P> where
P: SharedPointerKind,
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for ImageBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for ImageBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageNode<P>
sourceimpl<P: Debug> Debug for ImageBinding<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for ImageBinding<P> where
P: SharedPointerKind,
sourceimpl<'a, P> From<&'a mut ImageBinding<P>> for AnyImageBinding<'a, P> where
P: SharedPointerKind,
impl<'a, P> From<&'a mut ImageBinding<P>> for AnyImageBinding<'a, P> where
P: SharedPointerKind,
sourcefn from(binding: &'a mut ImageBinding<P>) -> Self
fn from(binding: &'a mut ImageBinding<P>) -> Self
Performs the conversion.
sourceimpl<P> Unbind<RenderGraph<P>, ImageBinding<P>> for ImageNode<P> where
P: SharedPointerKind + 'static,
impl<P> Unbind<RenderGraph<P>, ImageBinding<P>> for ImageNode<P> where
P: SharedPointerKind + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> ImageBinding<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for ImageBinding<P>
impl<P> !Send for ImageBinding<P>
impl<P> !Sync for ImageBinding<P>
impl<P> Unpin for ImageBinding<P> where
P: Unpin,
impl<P> !UnwindSafe for ImageBinding<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