pub struct AttachmentDescription2<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
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,
/* private fields */
}Expand description
Native structure VkAttachmentDescription2.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
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<'a> AttachmentDescription2<'a>
impl<'a> AttachmentDescription2<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
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.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.
Trait Implementations§
Source§impl<'a> Default for AttachmentDescription2<'a>
impl<'a> Default for AttachmentDescription2<'a>
impl<'a, 'root> Extends<AttachmentDescription2<'root>> for ExternalFormatANDROID<'a>
platform-android only.impl<'a, 'root> Extends<AttachmentDescription2<'root>> for AttachmentDescriptionStencilLayout<'a>
impl<'a, 'root> Extends<AttachmentDescription2<'root>> for ExternalFormatOHOS<'a>
platform-ohos only.