Struct gfx_hal::pass::AttachmentOps
source · [−]pub struct AttachmentOps {
pub load: AttachmentLoadOp,
pub store: AttachmentStoreOp,
}
Expand description
Attachment operations.
Fields
load: AttachmentLoadOp
Indicates how the data of the attachment will be loaded at first usage at the beginning of the subpass.
store: AttachmentStoreOp
Whether or not data from the store operation will be preserved after the subpass.
Implementations
sourceimpl AttachmentOps
impl AttachmentOps
sourcepub fn new(load: AttachmentLoadOp, store: AttachmentStoreOp) -> Self
pub fn new(load: AttachmentLoadOp, store: AttachmentStoreOp) -> Self
Convenience function to create a new AttachmentOps
.
Trait Implementations
sourceimpl Clone for AttachmentOps
impl Clone for AttachmentOps
sourcefn clone(&self) -> AttachmentOps
fn clone(&self) -> AttachmentOps
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttachmentOps
impl Debug for AttachmentOps
sourceimpl Hash for AttachmentOps
impl Hash for AttachmentOps
sourceimpl PartialEq<AttachmentOps> for AttachmentOps
impl PartialEq<AttachmentOps> for AttachmentOps
sourcefn eq(&self, other: &AttachmentOps) -> bool
fn eq(&self, other: &AttachmentOps) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttachmentOps) -> bool
fn ne(&self, other: &AttachmentOps) -> bool
This method tests for !=
.
impl Copy for AttachmentOps
impl Eq for AttachmentOps
impl StructuralEq for AttachmentOps
impl StructuralPartialEq for AttachmentOps
Auto Trait Implementations
impl RefUnwindSafe for AttachmentOps
impl Send for AttachmentOps
impl Sync for AttachmentOps
impl Unpin for AttachmentOps
impl UnwindSafe for AttachmentOps
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more