vk · Structs · A5
11 public declarations with native signatures and source-owned contracts.
Stvk::AttachmentDescription2
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 */
}Contract
Native structure VkAttachmentDescription2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: AttachmentDescriptionFlagsNative field flags.
format
format: FormatNative field format.
samples
samples: SampleCountFlagBitsNative field samples.
load_op
load_op: AttachmentLoadOpNative field loadOp.
store_op
store_op: AttachmentStoreOpNative field storeOp.
stencil_load_op
stencil_load_op: AttachmentLoadOpNative field stencilLoadOp.
stencil_store_op
stencil_store_op: AttachmentStoreOpNative field stencilStoreOp.
initial_layout
initial_layout: ImageLayoutNative field initialLayout.
final_layout
final_layout: ImageLayoutNative field finalLayout.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags without native effects.
set_format
Set native field format without native effects.
set_samples
Set native field samples without native effects.
set_load_op
Set native field loadOp without native effects.
set_store_op
Set native field storeOp without native effects.
set_stencil_load_op
Set native field stencilLoadOp without native effects.
set_stencil_store_op
Set native field stencilStoreOp without native effects.
set_initial_layout
Set native field initialLayout without native effects.
set_final_layout
Set native field finalLayout without native effects.
push_next
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.
default
Stvk::AttachmentDescriptionFlagBits
Contract
Open integer representation of VkAttachmentDescriptionFlagBits.
Fields
0
0: u32Methods and associated items
MAY_ALIAS_BIT
Native value VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT.
RESOLVE_SKIP_TRANSFER_FUNCTION_BIT_KHR
Native value VK_ATTACHMENT_DESCRIPTION_RESOLVE_SKIP_TRANSFER_FUNCTION_BIT_KHR.
Khronos reference: VK_ATTACHMENT_DESCRIPTION_RESOLVE_SKIP_TRANSFER_FUNCTION_BIT_KHR
RESOLVE_ENABLE_TRANSFER_FUNCTION_BIT_KHR
Native value VK_ATTACHMENT_DESCRIPTION_RESOLVE_ENABLE_TRANSFER_FUNCTION_BIT_KHR.
Khronos reference: VK_ATTACHMENT_DESCRIPTION_RESOLVE_ENABLE_TRANSFER_FUNCTION_BIT_KHR
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::AttachmentDescriptionStencilLayout
Contract
Native structure VkAttachmentDescriptionStencilLayout.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
stencil_initial_layout
stencil_initial_layout: ImageLayoutNative field stencilInitialLayout.
stencil_final_layout
stencil_final_layout: ImageLayoutNative field stencilFinalLayout.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stencil_initial_layout
Set native field stencilInitialLayout without native effects.
set_stencil_final_layout
Set native field stencilFinalLayout without native effects.
push_next
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.
default
Stvk::AttachmentFeedbackLoopInfoEXT
Contract
Native structure VkAttachmentFeedbackLoopInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
feedback_loop_enable
feedback_loop_enable: Bool32Native field feedbackLoopEnable.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_feedback_loop_enable
Set native field feedbackLoopEnable without native effects.
push_next
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.
default
Stvk::AttachmentLoadOp
Contract
Open integer representation of VkAttachmentLoadOp.
Fields
0
0: i32Methods and associated items
LOAD
Native value VK_ATTACHMENT_LOAD_OP_LOAD.
CLEAR
Native value VK_ATTACHMENT_LOAD_OP_CLEAR.
DONT_CARE
Native value VK_ATTACHMENT_LOAD_OP_DONT_CARE.
NONE
Native value VK_ATTACHMENT_LOAD_OP_NONE.
NONE_EXT
Native value VK_ATTACHMENT_LOAD_OP_NONE_EXT.
NONE_KHR
Native value VK_ATTACHMENT_LOAD_OP_NONE_KHR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::AttachmentReference
Contract
Native structure VkAttachmentReference.
Fields
attachment
attachment: u32Native field attachment.
layout
layout: ImageLayoutNative field layout.
Methods and associated items
new
Construct the record with its default native state.
set_attachment
Set native field attachment without native effects.
set_layout
Set native field layout without native effects.
clone
default
Stvk::AttachmentReference2
Contract
Native structure VkAttachmentReference2.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
attachment
attachment: u32Native field attachment.
layout
layout: ImageLayoutNative field layout.
aspect_mask
aspect_mask: ImageAspectFlagsNative field aspectMask.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_attachment
Set native field attachment without native effects.
set_layout
Set native field layout without native effects.
set_aspect_mask
Set native field aspectMask without native effects.
push_next
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.
default
Stvk::AttachmentReferenceStencilLayout
Contract
Native structure VkAttachmentReferenceStencilLayout.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
stencil_layout
stencil_layout: ImageLayoutNative field stencilLayout.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_stencil_layout
Set native field stencilLayout without native effects.
push_next
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.
default
Stvk::AttachmentSampleCountInfoAMD
Contract
Native structure VkAttachmentSampleCountInfoAMD.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
color_attachment_count
color_attachment_count: u32Native field colorAttachmentCount.
p_color_attachment_samples
p_color_attachment_samples: *const SampleCountFlagBitsNative field pColorAttachmentSamples.
depth_stencil_attachment_samples
depth_stencil_attachment_samples: SampleCountFlagBitsNative field depthStencilAttachmentSamples.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_color_attachment_count
Set native count colorAttachmentCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
set_color_attachment_samples
Borrow pColorAttachmentSamples and set checked native count colorAttachmentCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
Errors
Returns a construction error if the length exceeds the native count width.
set_depth_stencil_attachment_samples
Set native field depthStencilAttachmentSamples without native effects.
push_next
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.
default
Stvk::AttachmentSampleLocationsEXT
Contract
Native structure VkAttachmentSampleLocationsEXT.
Fields
attachment_index
attachment_index: u32Native field attachmentIndex.
sample_locations_info
sample_locations_info: SampleLocationsInfoEXT<'a>Native field sampleLocationsInfo.
Methods and associated items
new
Construct the record with its default native state.
set_attachment_index
Set native field attachmentIndex without native effects.
set_sample_locations_info
Set native field sampleLocationsInfo without native effects.
default
Stvk::AttachmentStoreOp
Contract
Open integer representation of VkAttachmentStoreOp.
Fields
0
0: i32Methods and associated items
STORE
Native value VK_ATTACHMENT_STORE_OP_STORE.
DONT_CARE
Native value VK_ATTACHMENT_STORE_OP_DONT_CARE.
NONE
Native value VK_ATTACHMENT_STORE_OP_NONE.
NONE_KHR
Native value VK_ATTACHMENT_STORE_OP_NONE_KHR.
NONE_QCOM
Native value VK_ATTACHMENT_STORE_OP_NONE_QCOM.
NONE_EXT
Native value VK_ATTACHMENT_STORE_OP_NONE_EXT.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.