vk · Structs · P34
16 public declarations with native signatures and source-owned contracts.
Stvk::PipelineInputAssemblyStateCreateInfo
Contract
Native structure VkPipelineInputAssemblyStateCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineInputAssemblyStateCreateFlagsNative field flags.
topology
topology: PrimitiveTopologyNative field topology.
primitive_restart_enable
primitive_restart_enable: Bool32Native field primitiveRestartEnable.
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_topology
Set native field topology without native effects.
set_primitive_restart_enable
Set native field primitiveRestartEnable 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::PipelineLayout
Contract
Raw Vulkan handle VkPipelineLayout.
Khronos reference: VkPipelineLayout
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::PipelineLayoutCreateFlagBits
Contract
Open integer representation of VkPipelineLayoutCreateFlagBits.
Fields
0
0: u32Methods and associated items
INDEPENDENT_SETS_BIT_EXT
Native value VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT.
Khronos reference: VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT
NO_TASK_SHADER_BIT_KHR
Native value VK_PIPELINE_LAYOUT_CREATE_NO_TASK_SHADER_BIT_KHR.
Khronos reference: VK_PIPELINE_LAYOUT_CREATE_NO_TASK_SHADER_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::PipelineLayoutCreateInfo
pub struct PipelineLayoutCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineLayoutCreateFlags,
pub set_layout_count: u32,
pub p_set_layouts: *const DescriptorSetLayout,
pub push_constant_range_count: u32,
pub p_push_constant_ranges: *const PushConstantRange,
/* private fields */
}Contract
Native structure VkPipelineLayoutCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineLayoutCreateFlagsNative field flags.
set_layout_count
set_layout_count: u32Native field setLayoutCount.
p_set_layouts
p_set_layouts: *const DescriptorSetLayoutNative field pSetLayouts.
push_constant_range_count
push_constant_range_count: u32Native field pushConstantRangeCount.
p_push_constant_ranges
p_push_constant_ranges: *const PushConstantRangeNative field pPushConstantRanges.
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_set_layout_count
Set native count setLayoutCount 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_set_layouts
Borrow pSetLayouts and set checked native count setLayoutCount.
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_push_constant_range_count
Set native count pushConstantRangeCount 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_push_constant_ranges
Borrow pPushConstantRanges and set checked native count pushConstantRangeCount.
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::PipelineLibraryCreateInfoKHR
Contract
Native structure VkPipelineLibraryCreateInfoKHR.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
library_count
library_count: u32Native field libraryCount.
p_libraries
p_libraries: *const PipelineNative field pLibraries.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_library_count
Set native count libraryCount 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_libraries
Borrow pLibraries and set checked native count libraryCount.
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::PipelineMultisampleStateCreateFlags
Contract
Open integer representation of VkPipelineMultisampleStateCreateFlags.
Fields
0
0: u32Methods and associated items
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::PipelineMultisampleStateCreateInfo
pub struct PipelineMultisampleStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineMultisampleStateCreateFlags,
pub rasterization_samples: SampleCountFlagBits,
pub sample_shading_enable: Bool32,
pub min_sample_shading: f32,
pub p_sample_mask: *const SampleMask,
pub alpha_to_coverage_enable: Bool32,
pub alpha_to_one_enable: Bool32,
/* private fields */
}Contract
Native structure VkPipelineMultisampleStateCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineMultisampleStateCreateFlagsNative field flags.
rasterization_samples
rasterization_samples: SampleCountFlagBitsNative field rasterizationSamples.
sample_shading_enable
sample_shading_enable: Bool32Native field sampleShadingEnable.
min_sample_shading
min_sample_shading: f32Native field minSampleShading.
p_sample_mask
p_sample_mask: *const SampleMaskNative field pSampleMask.
alpha_to_coverage_enable
alpha_to_coverage_enable: Bool32Native field alphaToCoverageEnable.
alpha_to_one_enable
alpha_to_one_enable: Bool32Native field alphaToOneEnable.
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_rasterization_samples
Set native field rasterizationSamples without native effects.
set_sample_shading_enable
Set native field sampleShadingEnable without native effects.
set_min_sample_shading
Set native field minSampleShading without native effects.
set_sample_mask
Borrow sample-mask words, checking the current rasterizationSamples.
Later raw/scalar edits and Vulkan valid usage remain caller obligations.
Errors
Returns a length mismatch unless there are ceil(samples / 32) words.
set_alpha_to_coverage_enable
Set native field alphaToCoverageEnable without native effects.
set_alpha_to_one_enable
Set native field alphaToOneEnable 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::PipelinePropertiesIdentifierEXT
Contract
Native structure VkPipelinePropertiesIdentifierEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *mut c_voidNative field pNext.
pipeline_identifier
pipeline_identifier: [u8; 16]Native field pipelineIdentifier.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_pipeline_identifier
Set native field pipelineIdentifier 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::PipelineRasterizationConservativeStateCreateFlagsEXT
Contract
Open integer representation of VkPipelineRasterizationConservativeStateCreateFlagsEXT.
Khronos reference: VkPipelineRasterizationConservativeStateCreateFlagsEXT
Fields
0
0: u32Methods and associated items
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::PipelineRasterizationConservativeStateCreateInfoEXT
pub struct PipelineRasterizationConservativeStateCreateInfoEXT<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineRasterizationConservativeStateCreateFlagsEXT,
pub conservative_rasterization_mode: ConservativeRasterizationModeEXT,
pub extra_primitive_overestimation_size: f32,
/* private fields */
}Contract
Native structure VkPipelineRasterizationConservativeStateCreateInfoEXT.
Khronos reference: VkPipelineRasterizationConservativeStateCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineRasterizationConservativeStateCreateFlagsEXTNative field flags.
conservative_rasterization_mode
conservative_rasterization_mode: ConservativeRasterizationModeEXTNative field conservativeRasterizationMode.
extra_primitive_overestimation_size
extra_primitive_overestimation_size: f32Native field extraPrimitiveOverestimationSize.
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_conservative_rasterization_mode
Set native field conservativeRasterizationMode without native effects.
set_extra_primitive_overestimation_size
Set native field extraPrimitiveOverestimationSize 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::PipelineRasterizationDepthClipStateCreateFlagsEXT
Contract
Open integer representation of VkPipelineRasterizationDepthClipStateCreateFlagsEXT.
Khronos reference: VkPipelineRasterizationDepthClipStateCreateFlagsEXT
Fields
0
0: u32Methods and associated items
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::PipelineRasterizationDepthClipStateCreateInfoEXT
Contract
Native structure VkPipelineRasterizationDepthClipStateCreateInfoEXT.
Khronos reference: VkPipelineRasterizationDepthClipStateCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineRasterizationDepthClipStateCreateFlagsEXTNative field flags.
depth_clip_enable
depth_clip_enable: Bool32Native field depthClipEnable.
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_depth_clip_enable
Set native field depthClipEnable 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::PipelineRasterizationLineStateCreateInfo
Contract
Native structure VkPipelineRasterizationLineStateCreateInfo.
Khronos reference: VkPipelineRasterizationLineStateCreateInfo
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
line_rasterization_mode
line_rasterization_mode: LineRasterizationModeNative field lineRasterizationMode.
stippled_line_enable
stippled_line_enable: Bool32Native field stippledLineEnable.
line_stipple_factor
line_stipple_factor: u32Native field lineStippleFactor.
line_stipple_pattern
line_stipple_pattern: u16Native field lineStipplePattern.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_line_rasterization_mode
Set native field lineRasterizationMode without native effects.
set_stippled_line_enable
Set native field stippledLineEnable without native effects.
set_line_stipple_factor
Set native field lineStippleFactor without native effects.
set_line_stipple_pattern
Set native field lineStipplePattern 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::PipelineRasterizationProvokingVertexStateCreateInfoEXT
Contract
Native structure VkPipelineRasterizationProvokingVertexStateCreateInfoEXT.
Khronos reference: VkPipelineRasterizationProvokingVertexStateCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
provoking_vertex_mode
provoking_vertex_mode: ProvokingVertexModeEXTNative field provokingVertexMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_provoking_vertex_mode
Set native field provokingVertexMode 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::PipelineRasterizationStateCreateFlags
Contract
Open integer representation of VkPipelineRasterizationStateCreateFlags.
Fields
0
0: u32Methods and associated items
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::PipelineRasterizationStateCreateInfo
pub struct PipelineRasterizationStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineRasterizationStateCreateFlags,
pub depth_clamp_enable: Bool32,
pub rasterizer_discard_enable: Bool32,
pub polygon_mode: PolygonMode,
pub cull_mode: CullModeFlags,
pub front_face: FrontFace,
pub depth_bias_enable: Bool32,
pub depth_bias_constant_factor: f32,
pub depth_bias_clamp: f32,
pub depth_bias_slope_factor: f32,
pub line_width: f32,
/* private fields */
}Contract
Native structure VkPipelineRasterizationStateCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: PipelineRasterizationStateCreateFlagsNative field flags.
depth_clamp_enable
depth_clamp_enable: Bool32Native field depthClampEnable.
rasterizer_discard_enable
rasterizer_discard_enable: Bool32Native field rasterizerDiscardEnable.
polygon_mode
polygon_mode: PolygonModeNative field polygonMode.
cull_mode
cull_mode: CullModeFlagsNative field cullMode.
front_face
front_face: FrontFaceNative field frontFace.
depth_bias_enable
depth_bias_enable: Bool32Native field depthBiasEnable.
depth_bias_constant_factor
depth_bias_constant_factor: f32Native field depthBiasConstantFactor.
depth_bias_clamp
depth_bias_clamp: f32Native field depthBiasClamp.
depth_bias_slope_factor
depth_bias_slope_factor: f32Native field depthBiasSlopeFactor.
line_width
line_width: f32Native field lineWidth.
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_depth_clamp_enable
Set native field depthClampEnable without native effects.
set_rasterizer_discard_enable
Set native field rasterizerDiscardEnable without native effects.
set_polygon_mode
Set native field polygonMode without native effects.
set_cull_mode
Set native field cullMode without native effects.
set_front_face
Set native field frontFace without native effects.
set_depth_bias_enable
Set native field depthBiasEnable without native effects.
set_depth_bias_constant_factor
Set native field depthBiasConstantFactor without native effects.
set_depth_bias_clamp
Set native field depthBiasClamp without native effects.
set_depth_bias_slope_factor
Set native field depthBiasSlopeFactor without native effects.
set_line_width
Set native field lineWidth 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.