#[repr(C)]pub struct VkAttachmentDescription {
pub flags: VkAttachmentDescriptionFlags,
pub format: VkFormat,
pub samples: VkSampleCountFlagBits,
pub loadOp: VkAttachmentLoadOp,
pub storeOp: VkAttachmentStoreOp,
pub stencilLoadOp: VkAttachmentLoadOp,
pub stencilStoreOp: VkAttachmentStoreOp,
pub initialLayout: VkImageLayout,
pub finalLayout: VkImageLayout,
}Fields§
§flags: VkAttachmentDescriptionFlags§format: VkFormat§samples: VkSampleCountFlagBits§loadOp: VkAttachmentLoadOp§storeOp: VkAttachmentStoreOp§stencilLoadOp: VkAttachmentLoadOp§stencilStoreOp: VkAttachmentStoreOp§initialLayout: VkImageLayout§finalLayout: VkImageLayoutImplementations§
Source§impl VkAttachmentDescription
impl VkAttachmentDescription
pub const fn new( format: VkFormat, init_layout: ImageLayout, fin_layout: ImageLayout, ) -> Self
pub const fn format(self, fmt: VkFormat) -> Self
pub const fn color_memory_op(self, load: LoadOp, store: StoreOp) -> Self
Sourcepub const fn stencil_load_op(self, op: LoadOp) -> Self
pub const fn stencil_load_op(self, op: LoadOp) -> Self
default: don’t care
Sourcepub const fn stencil_store_op(self, op: StoreOp) -> Self
pub const fn stencil_store_op(self, op: StoreOp) -> Self
default: don’t care
pub const fn stencil_memory_op(self, load: LoadOp, store: StoreOp) -> Self
pub const fn init_layout(self, layout: ImageLayout) -> Self
pub const fn fin_layout(self, layout: ImageLayout) -> Self
pub const fn image_layout_transition( self, init_layout: ImageLayout, fin_layout: ImageLayout, ) -> Self
pub const fn with_layout_from(self, trans: LayoutTransition) -> Self
pub const fn may_alias(self) -> Self
pub const fn no_alias(self) -> Self
pub const fn samples(self, count: u32) -> Self
Trait Implementations§
Source§impl Clone for VkAttachmentDescription
impl Clone for VkAttachmentDescription
Source§fn clone(&self) -> VkAttachmentDescription
fn clone(&self) -> VkAttachmentDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VkAttachmentDescription
impl RefUnwindSafe for VkAttachmentDescription
impl Send for VkAttachmentDescription
impl Sync for VkAttachmentDescription
impl Unpin for VkAttachmentDescription
impl UnwindSafe for VkAttachmentDescription
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