pub struct RenderingAttachmentInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub image_view: ImageView,
pub image_layout: ImageLayout,
pub resolve_mode: ResolveModeFlagBits,
pub resolve_image_view: ImageView,
pub resolve_image_layout: ImageLayout,
pub load_op: AttachmentLoadOp,
pub store_op: AttachmentStoreOp,
pub clear_value: ClearValue,
/* private fields */
}Expand description
Native structure VkRenderingAttachmentInfo.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
image_view: ImageViewNative field imageView.
image_layout: ImageLayoutNative field imageLayout.
resolve_mode: ResolveModeFlagBitsNative field resolveMode.
resolve_image_view: ImageViewNative field resolveImageView.
resolve_image_layout: ImageLayoutNative field resolveImageLayout.
load_op: AttachmentLoadOpNative field loadOp.
store_op: AttachmentStoreOpNative field storeOp.
clear_value: ClearValueNative field clearValue.
Implementations§
Source§impl<'a> RenderingAttachmentInfo<'a>
impl<'a> RenderingAttachmentInfo<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_image_view(self, value: ImageView) -> Self
pub fn set_image_view(self, value: ImageView) -> Self
Set native field imageView without native effects.
Sourcepub fn set_image_layout(self, value: ImageLayout) -> Self
pub fn set_image_layout(self, value: ImageLayout) -> Self
Set native field imageLayout without native effects.
Sourcepub fn set_resolve_mode(self, value: ResolveModeFlagBits) -> Self
pub fn set_resolve_mode(self, value: ResolveModeFlagBits) -> Self
Set native field resolveMode without native effects.
Sourcepub fn set_resolve_image_view(self, value: ImageView) -> Self
pub fn set_resolve_image_view(self, value: ImageView) -> Self
Set native field resolveImageView without native effects.
Sourcepub fn set_resolve_image_layout(self, value: ImageLayout) -> Self
pub fn set_resolve_image_layout(self, value: ImageLayout) -> Self
Set native field resolveImageLayout 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_clear_value(self, value: ClearValue) -> Self
pub fn set_clear_value(self, value: ClearValue) -> Self
Set native field clearValue 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.