pub struct State<R: Resource> {
pub access: R::Access,
pub layout: R::Layout,
pub stages: PipelineStage,
pub usage: R::Usage,
}
Expand description
State in which node uses resource and usage flags.
Fields§
§access: R::Access
Access performed by the node.
layout: R::Layout
Optional layout in which node can use resource.
stages: PipelineStage
Stages at which resource is accessed.
usage: R::Usage
Usage flags required for resource.
Trait Implementations§
impl<R: Copy + Resource> Copy for State<R>
Auto Trait Implementations§
impl<R> Freeze for State<R>
impl<R> RefUnwindSafe for State<R>where
<R as Resource>::Access: RefUnwindSafe,
<R as Resource>::Layout: RefUnwindSafe,
<R as Resource>::Usage: RefUnwindSafe,
impl<R> Send for State<R>
impl<R> Sync for State<R>
impl<R> Unpin for State<R>
impl<R> UnwindSafe for State<R>where
<R as Resource>::Access: UnwindSafe,
<R as Resource>::Layout: UnwindSafe,
<R as Resource>::Usage: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)