#[repr(C)]pub struct AttachmentDescription {
pub flags: AttachmentDescriptionFlags,
pub format: Format,
pub samples: SampleCountFlagBits,
pub load_op: AttachmentLoadOp,
pub store_op: AttachmentStoreOp,
pub stencil_load_op: AttachmentLoadOp,
pub stencil_store_op: AttachmentStoreOp,
pub initial_layout: ImageLayout,
pub final_layout: ImageLayout,
}Expand description
Native structure VkAttachmentDescription.
Fields§
§flags: AttachmentDescriptionFlagsNative field flags.
format: FormatNative field format.
samples: SampleCountFlagBitsNative field samples.
load_op: AttachmentLoadOpNative field loadOp.
store_op: AttachmentStoreOpNative field storeOp.
stencil_load_op: AttachmentLoadOpNative field stencilLoadOp.
stencil_store_op: AttachmentStoreOpNative field stencilStoreOp.
initial_layout: ImageLayoutNative field initialLayout.
final_layout: ImageLayoutNative field finalLayout.
Implementations§
Source§impl AttachmentDescription
impl AttachmentDescription
Sourcepub fn set_flags(self, value: AttachmentDescriptionFlags) -> Self
pub fn set_flags(self, value: AttachmentDescriptionFlags) -> Self
Set native field flags without native effects.
Sourcepub fn set_format(self, value: Format) -> Self
pub fn set_format(self, value: Format) -> Self
Set native field format without native effects.
Sourcepub fn set_samples(self, value: SampleCountFlagBits) -> Self
pub fn set_samples(self, value: SampleCountFlagBits) -> Self
Set native field samples without native effects.
Sourcepub fn set_load_op(self, value: AttachmentLoadOp) -> Self
pub fn set_load_op(self, value: AttachmentLoadOp) -> Self
Set native field loadOp without native effects.
Sourcepub fn set_store_op(self, value: AttachmentStoreOp) -> Self
pub fn set_store_op(self, value: AttachmentStoreOp) -> Self
Set native field storeOp without native effects.
Sourcepub fn set_stencil_load_op(self, value: AttachmentLoadOp) -> Self
pub fn set_stencil_load_op(self, value: AttachmentLoadOp) -> Self
Set native field stencilLoadOp without native effects.
Sourcepub fn set_stencil_store_op(self, value: AttachmentStoreOp) -> Self
pub fn set_stencil_store_op(self, value: AttachmentStoreOp) -> Self
Set native field stencilStoreOp without native effects.
Sourcepub fn set_initial_layout(self, value: ImageLayout) -> Self
pub fn set_initial_layout(self, value: ImageLayout) -> Self
Set native field initialLayout without native effects.
Sourcepub fn set_final_layout(self, value: ImageLayout) -> Self
pub fn set_final_layout(self, value: ImageLayout) -> Self
Set native field finalLayout without native effects.
Trait Implementations§
Source§impl Clone for AttachmentDescription
impl Clone for AttachmentDescription
impl Copy for AttachmentDescription
Auto Trait Implementations§
impl Forget for AttachmentDescription
impl Freeze for AttachmentDescription
impl Move for AttachmentDescription
impl RefUnwindSafe for AttachmentDescription
impl Send for AttachmentDescription
impl Sync for AttachmentDescription
impl Unpin for AttachmentDescription
impl UnsafeUnpin for AttachmentDescription
impl UnwindSafe for AttachmentDescription
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