vk · Structs · F2
14 public declarations with native signatures and source-owned contracts.
Stvk::FragmentShadingRateCombinerOpKHR
Contract
Open integer representation of VkFragmentShadingRateCombinerOpKHR.
Fields
0
0: i32Methods and associated items
KEEP_KHR
Native value VK_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR.
Khronos reference: VK_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_KHR
REPLACE_KHR
Native value VK_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHR.
Khronos reference: VK_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_KHR
MIN_KHR
Native value VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_KHR.
Khronos reference: VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_KHR
MAX_KHR
Native value VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_KHR.
Khronos reference: VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_KHR
MUL_KHR
Native value VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_KHR.
Khronos reference: VK_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_KHR
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FragmentShadingRateNV
Contract
Open integer representation of VkFragmentShadingRateNV.
Fields
0
0: i32Methods and associated items
_1_INVOCATION_PER_PIXEL_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV
_1_INVOCATION_PER_1X2_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV
_1_INVOCATION_PER_2X1_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV
_1_INVOCATION_PER_2X2_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV
_1_INVOCATION_PER_2X4_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV
_1_INVOCATION_PER_4X2_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV
_1_INVOCATION_PER_4X4_PIXELS_NV
Native value VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV
_2_INVOCATIONS_PER_PIXEL_NV
Native value VK_FRAGMENT_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV
_4_INVOCATIONS_PER_PIXEL_NV
Native value VK_FRAGMENT_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV
_8_INVOCATIONS_PER_PIXEL_NV
Native value VK_FRAGMENT_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV
_16_INVOCATIONS_PER_PIXEL_NV
Native value VK_FRAGMENT_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV
NO_INVOCATIONS_NV
Native value VK_FRAGMENT_SHADING_RATE_NO_INVOCATIONS_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_NO_INVOCATIONS_NV
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FragmentShadingRateTypeNV
Contract
Open integer representation of VkFragmentShadingRateTypeNV.
Fields
0
0: i32Methods and associated items
FRAGMENT_SIZE_NV
Native value VK_FRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV.
Khronos reference: VK_FRAGMENT_SHADING_RATE_TYPE_FRAGMENT_SIZE_NV
ENUMS_NV
Native value VK_FRAGMENT_SHADING_RATE_TYPE_ENUMS_NV.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FrameBoundaryEXT
pub struct FrameBoundaryEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: FrameBoundaryFlagsEXT,
pub frame_id: u64,
pub image_count: u32,
pub p_images: *const Image,
pub buffer_count: u32,
pub p_buffers: *const Buffer,
pub tag_name: u64,
pub tag_size: usize,
pub p_tag: *const c_void,
/* private fields */
}Contract
Native structure VkFrameBoundaryEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: FrameBoundaryFlagsEXTNative field flags.
frame_id
frame_id: u64Native field frameID.
image_count
image_count: u32Native field imageCount.
p_images
p_images: *const ImageNative field pImages.
buffer_count
buffer_count: u32Native field bufferCount.
p_buffers
p_buffers: *const BufferNative field pBuffers.
tag_name
tag_name: u64Native field tagName.
tag_size
tag_size: usizeNative field tagSize.
p_tag
p_tag: *const c_voidNative field pTag.
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_frame_id
Set native field frameID without native effects.
set_image_count
Set native count imageCount 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_images
Borrow pImages and set checked native count imageCount.
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_buffer_count
Set native count bufferCount 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_buffers
Borrow pBuffers and set checked native count bufferCount.
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_tag_name
Set native field tagName without native effects.
set_tag_size
Set native count tagSize 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_tag
Borrow pTag and set checked native byte size tagSize.
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.
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::FrameBoundaryFlagBitsEXT
Contract
Open integer representation of VkFrameBoundaryFlagBitsEXT.
Fields
0
0: u32Methods and associated items
FRAME_END_BIT_EXT
Native value VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT.
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::FrameBoundaryTensorsARM
Contract
Native structure VkFrameBoundaryTensorsARM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
tensor_count
tensor_count: u32Native field tensorCount.
p_tensors
p_tensors: *const TensorARMNative field pTensors.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_tensor_count
Set native count tensorCount 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_tensors
Borrow pTensors and set checked native count tensorCount.
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.
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::Framebuffer
Contract
Raw Vulkan handle VkFramebuffer.
Khronos reference: VkFramebuffer
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: u64Methods and associated items
NULL
is_null
from_raw
as_raw
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FramebufferAttachmentImageInfo
Contract
Native structure VkFramebufferAttachmentImageInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: ImageCreateFlagsNative field flags.
usage
usage: ImageUsageFlagsNative field usage.
width
width: u32Native field width.
height
height: u32Native field height.
layer_count
layer_count: u32Native field layerCount.
view_format_count
view_format_count: u32Native field viewFormatCount.
p_view_formats
p_view_formats: *const FormatNative field pViewFormats.
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_usage
Set native field usage without native effects.
set_width
Set native field width without native effects.
set_height
Set native field height without native effects.
set_layer_count
Set native field layerCount without native effects.
set_view_format_count
Set native count viewFormatCount 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_view_formats
Borrow pViewFormats and set checked native count viewFormatCount.
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.
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::FramebufferAttachmentsCreateInfo
Contract
Native structure VkFramebufferAttachmentsCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
attachment_image_info_count
attachment_image_info_count: u32Native field attachmentImageInfoCount.
p_attachment_image_infos
p_attachment_image_infos: *const FramebufferAttachmentImageInfo<'a>Native field pAttachmentImageInfos.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_attachment_image_info_count
Set native count attachmentImageInfoCount 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_attachment_image_infos
Borrow pAttachmentImageInfos and set checked native count attachmentImageInfoCount.
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.
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::FramebufferCreateFlagBits
Contract
Open integer representation of VkFramebufferCreateFlagBits.
Fields
0
0: u32Methods and associated items
IMAGELESS_BIT
Native value VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT.
IMAGELESS_BIT_KHR
Native value VK_FRAMEBUFFER_CREATE_IMAGELESS_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::FramebufferCreateInfo
Contract
Native structure VkFramebufferCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: FramebufferCreateFlagsNative field flags.
render_pass
render_pass: RenderPassNative field renderPass.
attachment_count
attachment_count: u32Native field attachmentCount.
p_attachments
p_attachments: *const ImageViewNative field pAttachments.
width
width: u32Native field width.
height
height: u32Native field height.
layers
layers: u32Native field layers.
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_render_pass
Set native field renderPass without native effects.
set_attachment_count
Set native count attachmentCount 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_attachments
Borrow pAttachments and set checked native count attachmentCount.
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_width
Set native field width without native effects.
set_height
Set native field height without native effects.
set_layers
Set native field layers 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::FramebufferMixedSamplesCombinationNV
pub struct FramebufferMixedSamplesCombinationNV<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub coverage_reduction_mode: CoverageReductionModeNV,
pub rasterization_samples: SampleCountFlagBits,
pub depth_stencil_samples: SampleCountFlags,
pub color_samples: SampleCountFlags,
/* private fields */
}Contract
Native structure VkFramebufferMixedSamplesCombinationNV.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
coverage_reduction_mode
coverage_reduction_mode: CoverageReductionModeNVNative field coverageReductionMode.
rasterization_samples
rasterization_samples: SampleCountFlagBitsNative field rasterizationSamples.
depth_stencil_samples
depth_stencil_samples: SampleCountFlagsNative field depthStencilSamples.
color_samples
color_samples: SampleCountFlagsNative field colorSamples.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_coverage_reduction_mode
Set native field coverageReductionMode without native effects.
set_rasterization_samples
Set native field rasterizationSamples without native effects.
set_depth_stencil_samples
Set native field depthStencilSamples without native effects.
set_color_samples
Set native field colorSamples 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::FrontFace
Contract
Open integer representation of VkFrontFace.
Fields
0
0: i32Methods and associated items
COUNTER_CLOCKWISE
Native value VK_FRONT_FACE_COUNTER_CLOCKWISE.
CLOCKWISE
Native value VK_FRONT_FACE_CLOCKWISE.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::FullScreenExclusiveEXT
Contract
Open integer representation of VkFullScreenExclusiveEXT.
Fields
0
0: i32Methods and associated items
DEFAULT_EXT
Native value VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT.
ALLOWED_EXT
Native value VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT.
DISALLOWED_EXT
Native value VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT.
APPLICATION_CONTROLLED_EXT
Native value VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT.
Khronos reference: VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.