Realm

vk · Structs · P36

16 public declarations with native signatures and source-owned contracts.

StRustExperimental

Stvk::PipelineTessellationStateCreateFlags

Contract

Open integer representation of VkPipelineTessellationStateCreateFlags.

Khronos reference: VkPipelineTessellationStateCreateFlags

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = PipelineTessellationStateCreateFlags
The resulting type after applying the & operator.

Output-1

Method
type Output = PipelineTessellationStateCreateFlags
The resulting type after applying the | operator.

Output-2

Method
type Output = PipelineTessellationStateCreateFlags
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> PipelineTessellationStateCreateFlags
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> PipelineTessellationStateCreateFlags
Returns the “default value” for a type. Read more

Output-3

Method
type Output = PipelineTessellationStateCreateFlags
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &PipelineTessellationStateCreateFlags) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::PipelineTessellationStateCreateInfo

pub struct PipelineTessellationStateCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineTessellationStateCreateFlags, pub patch_control_points: u32, /* private fields */ }
Native structure VkPipelineTessellationStateCreateInfo.

Contract

Native structure VkPipelineTessellationStateCreateInfo.

Khronos reference: VkPipelineTessellationStateCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineTessellationStateCreateFlags

Native field flags.

patch_control_points

Field
patch_control_points: u32

Native field patchControlPoints.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: PipelineTessellationStateCreateFlags) -> Self

Set native field flags without native effects.

set_patch_control_points

Method
pub fn set_patch_control_points(self, value: u32) -> Self

Set native field patchControlPoints without native effects.

push_next

Method
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.

Stvk::PipelineVertexInputDivisorStateCreateInfo

pub struct PipelineVertexInputDivisorStateCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub vertex_binding_divisor_count: u32, pub p_vertex_binding_divisors: *const VertexInputBindingDivisorDescription, /* private fields */ }
Native structure VkPipelineVertexInputDivisorStateCreateInfo.

Contract

Native structure VkPipelineVertexInputDivisorStateCreateInfo.

Khronos reference: VkPipelineVertexInputDivisorStateCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

vertex_binding_divisor_count

Field
vertex_binding_divisor_count: u32

Native field vertexBindingDivisorCount.

p_vertex_binding_divisors

Field
p_vertex_binding_divisors: *const VertexInputBindingDivisorDescription

Native field pVertexBindingDivisors.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_vertex_binding_divisor_count

Method
pub fn set_vertex_binding_divisor_count(self, value: u32) -> Self

Set native count vertexBindingDivisorCount 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_vertex_binding_divisors

Method
pub fn set_vertex_binding_divisors( self, value: &'a [VertexInputBindingDivisorDescription], ) -> Result<Self, ConstructionError>

Borrow pVertexBindingDivisors and set checked native count vertexBindingDivisorCount. 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

Method
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.

Stvk::PipelineVertexInputStateCreateFlags

Contract

Open integer representation of VkPipelineVertexInputStateCreateFlags.

Khronos reference: VkPipelineVertexInputStateCreateFlags

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = PipelineVertexInputStateCreateFlags
The resulting type after applying the & operator.

Output-1

Method
type Output = PipelineVertexInputStateCreateFlags
The resulting type after applying the | operator.

Output-2

Method
type Output = PipelineVertexInputStateCreateFlags
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> PipelineVertexInputStateCreateFlags
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> PipelineVertexInputStateCreateFlags
Returns the “default value” for a type. Read more

Output-3

Method
type Output = PipelineVertexInputStateCreateFlags
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &PipelineVertexInputStateCreateFlags) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::PipelineVertexInputStateCreateInfo

pub struct PipelineVertexInputStateCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineVertexInputStateCreateFlags, pub vertex_binding_description_count: u32, pub p_vertex_binding_descriptions: *const VertexInputBindingDescription, pub vertex_attribute_description_count: u32, pub p_vertex_attribute_descriptions: *const VertexInputAttributeDescription, /* private fields */ }
Native structure VkPipelineVertexInputStateCreateInfo.

Contract

Native structure VkPipelineVertexInputStateCreateInfo.

Khronos reference: VkPipelineVertexInputStateCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineVertexInputStateCreateFlags

Native field flags.

vertex_binding_description_count

Field
vertex_binding_description_count: u32

Native field vertexBindingDescriptionCount.

p_vertex_binding_descriptions

Field
p_vertex_binding_descriptions: *const VertexInputBindingDescription

Native field pVertexBindingDescriptions.

vertex_attribute_description_count

Field
vertex_attribute_description_count: u32

Native field vertexAttributeDescriptionCount.

p_vertex_attribute_descriptions

Field
p_vertex_attribute_descriptions: *const VertexInputAttributeDescription

Native field pVertexAttributeDescriptions.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: PipelineVertexInputStateCreateFlags) -> Self

Set native field flags without native effects.

set_vertex_binding_description_count

Method
pub fn set_vertex_binding_description_count(self, value: u32) -> Self

Set native count vertexBindingDescriptionCount 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_vertex_binding_descriptions

Method
pub fn set_vertex_binding_descriptions( self, value: &'a [VertexInputBindingDescription], ) -> Result<Self, ConstructionError>

Borrow pVertexBindingDescriptions and set checked native count vertexBindingDescriptionCount. 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_vertex_attribute_description_count

Method
pub fn set_vertex_attribute_description_count(self, value: u32) -> Self

Set native count vertexAttributeDescriptionCount 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_vertex_attribute_descriptions

Method
pub fn set_vertex_attribute_descriptions( self, value: &'a [VertexInputAttributeDescription], ) -> Result<Self, ConstructionError>

Borrow pVertexAttributeDescriptions and set checked native count vertexAttributeDescriptionCount. 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

Method
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.

Stvk::PipelineViewportCoarseSampleOrderStateCreateInfoNV

pub struct PipelineViewportCoarseSampleOrderStateCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub sample_order_type: CoarseSampleOrderTypeNV, pub custom_sample_order_count: u32, pub p_custom_sample_orders: *const CoarseSampleOrderCustomNV<'a>, /* private fields */ }
Native structure VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.

Contract

Native structure VkPipelineViewportCoarseSampleOrderStateCreateInfoNV.

Khronos reference: VkPipelineViewportCoarseSampleOrderStateCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

sample_order_type

Field
sample_order_type: CoarseSampleOrderTypeNV

Native field sampleOrderType.

custom_sample_order_count

Field
custom_sample_order_count: u32

Native field customSampleOrderCount.

p_custom_sample_orders

Field
p_custom_sample_orders: *const CoarseSampleOrderCustomNV<'a>

Native field pCustomSampleOrders.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_sample_order_type

Method
pub fn set_sample_order_type(self, value: CoarseSampleOrderTypeNV) -> Self

Set native field sampleOrderType without native effects.

set_custom_sample_order_count

Method
pub fn set_custom_sample_order_count(self, value: u32) -> Self

Set native count customSampleOrderCount 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_custom_sample_orders

Method
pub fn set_custom_sample_orders( self, value: &'a [CoarseSampleOrderCustomNV<'a>], ) -> Result<Self, ConstructionError>

Borrow pCustomSampleOrders and set checked native count customSampleOrderCount. 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

Method
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.

Stvk::PipelineViewportDepthClampControlCreateInfoEXT

pub struct PipelineViewportDepthClampControlCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub depth_clamp_mode: DepthClampModeEXT, pub p_depth_clamp_range: *const DepthClampRangeEXT, /* private fields */ }
Native structure VkPipelineViewportDepthClampControlCreateInfoEXT.

Contract

Native structure VkPipelineViewportDepthClampControlCreateInfoEXT.

Khronos reference: VkPipelineViewportDepthClampControlCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

depth_clamp_mode

Field
depth_clamp_mode: DepthClampModeEXT

Native field depthClampMode.

p_depth_clamp_range

Field
p_depth_clamp_range: *const DepthClampRangeEXT

Native field pDepthClampRange.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_depth_clamp_mode

Method
pub fn set_depth_clamp_mode(self, value: DepthClampModeEXT) -> Self

Set native field depthClampMode without native effects.

set_depth_clamp_range

Method
pub fn set_depth_clamp_range(self, value: &'a DepthClampRangeEXT) -> Self

Set native field pDepthClampRange without native effects.

push_next

Method
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.

Stvk::PipelineViewportDepthClipControlCreateInfoEXT

pub struct PipelineViewportDepthClipControlCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub negative_one_to_one: Bool32, /* private fields */ }
Native structure VkPipelineViewportDepthClipControlCreateInfoEXT.

Contract

Native structure VkPipelineViewportDepthClipControlCreateInfoEXT.

Khronos reference: VkPipelineViewportDepthClipControlCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

negative_one_to_one

Field
negative_one_to_one: Bool32

Native field negativeOneToOne.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_negative_one_to_one

Method
pub fn set_negative_one_to_one(self, value: Bool32) -> Self

Set native field negativeOneToOne without native effects.

push_next

Method
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.

Stvk::PipelineViewportExclusiveScissorStateCreateInfoNV

pub struct PipelineViewportExclusiveScissorStateCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub exclusive_scissor_count: u32, pub p_exclusive_scissors: *const Rect2D, /* private fields */ }
Native structure VkPipelineViewportExclusiveScissorStateCreateInfoNV.

Contract

Native structure VkPipelineViewportExclusiveScissorStateCreateInfoNV.

Khronos reference: VkPipelineViewportExclusiveScissorStateCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

exclusive_scissor_count

Field
exclusive_scissor_count: u32

Native field exclusiveScissorCount.

p_exclusive_scissors

Field
p_exclusive_scissors: *const Rect2D

Native field pExclusiveScissors.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_exclusive_scissor_count

Method
pub fn set_exclusive_scissor_count(self, value: u32) -> Self

Set native count exclusiveScissorCount 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_exclusive_scissors

Method
pub fn set_exclusive_scissors( self, value: &'a [Rect2D], ) -> Result<Self, ConstructionError>

Borrow pExclusiveScissors and set checked native count exclusiveScissorCount. 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

Method
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.

Stvk::PipelineViewportShadingRateImageStateCreateInfoNV

pub struct PipelineViewportShadingRateImageStateCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub shading_rate_image_enable: Bool32, pub viewport_count: u32, pub p_shading_rate_palettes: *const ShadingRatePaletteNV<'a>, /* private fields */ }
Native structure VkPipelineViewportShadingRateImageStateCreateInfoNV.

Contract

Native structure VkPipelineViewportShadingRateImageStateCreateInfoNV.

Khronos reference: VkPipelineViewportShadingRateImageStateCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

shading_rate_image_enable

Field
shading_rate_image_enable: Bool32

Native field shadingRateImageEnable.

viewport_count

Field
viewport_count: u32

Native field viewportCount.

p_shading_rate_palettes

Field
p_shading_rate_palettes: *const ShadingRatePaletteNV<'a>

Native field pShadingRatePalettes.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_shading_rate_image_enable

Method
pub fn set_shading_rate_image_enable(self, value: Bool32) -> Self

Set native field shadingRateImageEnable without native effects.

set_viewport_count

Method
pub fn set_viewport_count(self, value: u32) -> Self

Set native count viewportCount 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_shading_rate_palettes

Method
pub fn set_shading_rate_palettes( self, value: &'a [ShadingRatePaletteNV<'a>], ) -> Result<Self, ConstructionError>

Borrow pShadingRatePalettes and set checked native count viewportCount. 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

Method
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.

Stvk::PipelineViewportStateCreateFlags

Contract

Open integer representation of VkPipelineViewportStateCreateFlags.

Khronos reference: VkPipelineViewportStateCreateFlags

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = PipelineViewportStateCreateFlags
The resulting type after applying the & operator.

Output-1

Method
type Output = PipelineViewportStateCreateFlags
The resulting type after applying the | operator.

Output-2

Method
type Output = PipelineViewportStateCreateFlags
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> PipelineViewportStateCreateFlags
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> PipelineViewportStateCreateFlags
Returns the “default value” for a type. Read more

Output-3

Method
type Output = PipelineViewportStateCreateFlags
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &PipelineViewportStateCreateFlags) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::PipelineViewportStateCreateInfo

pub struct PipelineViewportStateCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineViewportStateCreateFlags, pub viewport_count: u32, pub p_viewports: *const Viewport, pub scissor_count: u32, pub p_scissors: *const Rect2D, /* private fields */ }
Native structure VkPipelineViewportStateCreateInfo.

Contract

Native structure VkPipelineViewportStateCreateInfo.

Khronos reference: VkPipelineViewportStateCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineViewportStateCreateFlags

Native field flags.

viewport_count

Field
viewport_count: u32

Native field viewportCount.

p_viewports

Field
p_viewports: *const Viewport

Native field pViewports.

scissor_count

Field
scissor_count: u32

Native field scissorCount.

p_scissors

Field
p_scissors: *const Rect2D

Native field pScissors.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: PipelineViewportStateCreateFlags) -> Self

Set native field flags without native effects.

set_viewport_count

Method
pub fn set_viewport_count(self, value: u32) -> Self

Set native count viewportCount 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_viewports

Method
pub fn set_viewports( self, value: &'a [Viewport], ) -> Result<Self, ConstructionError>

Borrow pViewports and set checked native count viewportCount. 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_scissor_count

Method
pub fn set_scissor_count(self, value: u32) -> Self

Set native count scissorCount 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_scissors

Method
pub fn set_scissors( self, value: &'a [Rect2D], ) -> Result<Self, ConstructionError>

Borrow pScissors and set checked native count scissorCount. 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

Method
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.

Stvk::PipelineViewportSwizzleStateCreateFlagsNV

Contract

Open integer representation of VkPipelineViewportSwizzleStateCreateFlagsNV.

Khronos reference: VkPipelineViewportSwizzleStateCreateFlagsNV

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = PipelineViewportSwizzleStateCreateFlagsNV
The resulting type after applying the & operator.

Output-1

Method
type Output = PipelineViewportSwizzleStateCreateFlagsNV
The resulting type after applying the | operator.

Output-2

Method
type Output = PipelineViewportSwizzleStateCreateFlagsNV
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> PipelineViewportSwizzleStateCreateFlagsNV
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> PipelineViewportSwizzleStateCreateFlagsNV
Returns the “default value” for a type. Read more

Output-3

Method
type Output = PipelineViewportSwizzleStateCreateFlagsNV
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &PipelineViewportSwizzleStateCreateFlagsNV) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::PipelineViewportSwizzleStateCreateInfoNV

pub struct PipelineViewportSwizzleStateCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: PipelineViewportSwizzleStateCreateFlagsNV, pub viewport_count: u32, pub p_viewport_swizzles: *const ViewportSwizzleNV, /* private fields */ }
Native structure VkPipelineViewportSwizzleStateCreateInfoNV.

Contract

Native structure VkPipelineViewportSwizzleStateCreateInfoNV.

Khronos reference: VkPipelineViewportSwizzleStateCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: PipelineViewportSwizzleStateCreateFlagsNV

Native field flags.

viewport_count

Field
viewport_count: u32

Native field viewportCount.

p_viewport_swizzles

Field
p_viewport_swizzles: *const ViewportSwizzleNV

Native field pViewportSwizzles.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: PipelineViewportSwizzleStateCreateFlagsNV) -> Self

Set native field flags without native effects.

set_viewport_count

Method
pub fn set_viewport_count(self, value: u32) -> Self

Set native count viewportCount 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_viewport_swizzles

Method
pub fn set_viewport_swizzles( self, value: &'a [ViewportSwizzleNV], ) -> Result<Self, ConstructionError>

Borrow pViewportSwizzles and set checked native count viewportCount. 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

Method
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.

Stvk::PipelineViewportWScalingStateCreateInfoNV

pub struct PipelineViewportWScalingStateCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub viewport_w_scaling_enable: Bool32, pub viewport_count: u32, pub p_viewport_w_scalings: *const ViewportWScalingNV, /* private fields */ }
Native structure VkPipelineViewportWScalingStateCreateInfoNV.

Contract

Native structure VkPipelineViewportWScalingStateCreateInfoNV.

Khronos reference: VkPipelineViewportWScalingStateCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

viewport_w_scaling_enable

Field
viewport_w_scaling_enable: Bool32

Native field viewportWScalingEnable.

viewport_count

Field
viewport_count: u32

Native field viewportCount.

p_viewport_w_scalings

Field
p_viewport_w_scalings: *const ViewportWScalingNV

Native field pViewportWScalings.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_viewport_w_scaling_enable

Method
pub fn set_viewport_w_scaling_enable(self, value: Bool32) -> Self

Set native field viewportWScalingEnable without native effects.

set_viewport_count

Method
pub fn set_viewport_count(self, value: u32) -> Self

Set native count viewportCount 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_viewport_w_scalings

Method
pub fn set_viewport_w_scalings( self, value: &'a [ViewportWScalingNV], ) -> Result<Self, ConstructionError>

Borrow pViewportWScalings and set checked native count viewportCount. 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

Method
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.

Stvk::PointClippingBehavior

Contract

Open integer representation of VkPointClippingBehavior.

Khronos reference: VkPointClippingBehavior

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> PointClippingBehavior
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> PointClippingBehavior
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &PointClippingBehavior) -> bool
Tests for self and other values to be equal, and is used by ==.