Realm

vk · Structs · V1

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

StRustExperimental

Stvk::ValidationCacheCreateFlagsEXT

Contract

Open integer representation of VkValidationCacheCreateFlagsEXT.

Khronos reference: VkValidationCacheCreateFlagsEXT

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 = ValidationCacheCreateFlagsEXT
The resulting type after applying the & operator.

Output-1

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

Output-2

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

clone

Method
fn clone(&self) -> ValidationCacheCreateFlagsEXT
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() -> ValidationCacheCreateFlagsEXT
Returns the “default value” for a type. Read more

Output-3

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

eq

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

Stvk::ValidationCacheCreateInfoEXT

pub struct ValidationCacheCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: ValidationCacheCreateFlagsEXT, pub initial_data_size: usize, pub p_initial_data: *const c_void, /* private fields */ }
Native structure VkValidationCacheCreateInfoEXT.

Contract

Native structure VkValidationCacheCreateInfoEXT.

Khronos reference: VkValidationCacheCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: ValidationCacheCreateFlagsEXT

Native field flags.

initial_data_size

Field
initial_data_size: usize

Native field initialDataSize.

p_initial_data

Field
p_initial_data: *const c_void

Native field pInitialData.

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: ValidationCacheCreateFlagsEXT) -> Self

Set native field flags without native effects.

set_initial_data_size

Method
pub fn set_initial_data_size(self, value: usize) -> Self

Set native count initialDataSize 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_initial_data

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

Borrow pInitialData and set checked native byte size initialDataSize. 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::ValidationCacheEXT

Contract

Raw Vulkan handle VkValidationCacheEXT.

Khronos reference: VkValidationCacheEXT Calls using this identity must satisfy Vulkan lifetime and synchronization rules.

Fields

0

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

Methods and associated items

NULL

Method
pub const NULL: Self
No public source comment is attached to this declaration.

is_null

Method
pub fn is_null(self) -> bool
No public source comment is attached to this declaration.

from_raw

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

as_raw

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

fmt

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

eq

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

Stvk::ValidationCacheHeaderVersionEXT

Contract

Open integer representation of VkValidationCacheHeaderVersionEXT.

Khronos reference: VkValidationCacheHeaderVersionEXT

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) -> ValidationCacheHeaderVersionEXT
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() -> ValidationCacheHeaderVersionEXT
Returns the “default value” for a type. Read more

eq

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

Stvk::ValidationCheckEXT

Contract

Open integer representation of VkValidationCheckEXT.

Khronos reference: VkValidationCheckEXT

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.

fmt

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

default

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

eq

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

Stvk::ValidationFeatureDisableEXT

Contract

Open integer representation of VkValidationFeatureDisableEXT.

Khronos reference: VkValidationFeatureDisableEXT

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) -> ValidationFeatureDisableEXT
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() -> ValidationFeatureDisableEXT
Returns the “default value” for a type. Read more

eq

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

Stvk::ValidationFeatureEnableEXT

Contract

Open integer representation of VkValidationFeatureEnableEXT.

Khronos reference: VkValidationFeatureEnableEXT

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) -> ValidationFeatureEnableEXT
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() -> ValidationFeatureEnableEXT
Returns the “default value” for a type. Read more

eq

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

Stvk::ValidationFeaturesEXT

pub struct ValidationFeaturesEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub enabled_validation_feature_count: u32, pub p_enabled_validation_features: *const ValidationFeatureEnableEXT, pub disabled_validation_feature_count: u32, pub p_disabled_validation_features: *const ValidationFeatureDisableEXT, /* private fields */ }
Native structure VkValidationFeaturesEXT.

Contract

Native structure VkValidationFeaturesEXT.

Khronos reference: VkValidationFeaturesEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

enabled_validation_feature_count

Field
enabled_validation_feature_count: u32

Native field enabledValidationFeatureCount.

p_enabled_validation_features

Field
p_enabled_validation_features: *const ValidationFeatureEnableEXT

Native field pEnabledValidationFeatures.

disabled_validation_feature_count

Field
disabled_validation_feature_count: u32

Native field disabledValidationFeatureCount.

p_disabled_validation_features

Field
p_disabled_validation_features: *const ValidationFeatureDisableEXT

Native field pDisabledValidationFeatures.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_enabled_validation_feature_count

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

Set native count enabledValidationFeatureCount 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_enabled_validation_features

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

Borrow pEnabledValidationFeatures and set checked native count enabledValidationFeatureCount. 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_disabled_validation_feature_count

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

Set native count disabledValidationFeatureCount 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_disabled_validation_features

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

Borrow pDisabledValidationFeatures and set checked native count disabledValidationFeatureCount. 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::ValidationFlagsEXT

pub struct ValidationFlagsEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub disabled_validation_check_count: u32, pub p_disabled_validation_checks: *const ValidationCheckEXT, /* private fields */ }
Native structure VkValidationFlagsEXT.

Contract

Native structure VkValidationFlagsEXT.

Khronos reference: VkValidationFlagsEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

disabled_validation_check_count

Field
disabled_validation_check_count: u32

Native field disabledValidationCheckCount.

p_disabled_validation_checks

Field
p_disabled_validation_checks: *const ValidationCheckEXT

Native field pDisabledValidationChecks.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_disabled_validation_check_count

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

Set native count disabledValidationCheckCount 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_disabled_validation_checks

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

Borrow pDisabledValidationChecks and set checked native count disabledValidationCheckCount. 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::VendorId

Contract

Open integer representation of VkVendorId.

Khronos reference: VkVendorId

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.

fmt

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

eq

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

Stvk::VertexInputAttributeDescription

Contract

Native structure VkVertexInputAttributeDescription.

Khronos reference: VkVertexInputAttributeDescription

Fields

location

Field
location: u32

Native field location.

binding

Field
binding: u32

Native field binding.

format

Field
format: Format

Native field format.

offset

Field
offset: u32

Native field offset.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_location

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

Set native field location without native effects.

set_binding

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

Set native field binding without native effects.

set_format

Method
pub fn set_format(self, value: Format) -> Self

Set native field format without native effects.

set_offset

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

Set native field offset without native effects.

clone

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

Stvk::VertexInputAttributeDescription2EXT

pub struct VertexInputAttributeDescription2EXT<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub location: u32, pub binding: u32, pub format: Format, pub offset: u32, /* private fields */ }
Native structure VkVertexInputAttributeDescription2EXT.

Contract

Native structure VkVertexInputAttributeDescription2EXT.

Khronos reference: VkVertexInputAttributeDescription2EXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

location

Field
location: u32

Native field location.

binding

Field
binding: u32

Native field binding.

format

Field
format: Format

Native field format.

offset

Field
offset: u32

Native field offset.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_location

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

Set native field location without native effects.

set_binding

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

Set native field binding without native effects.

set_format

Method
pub fn set_format(self, value: Format) -> Self

Set native field format without native effects.

set_offset

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

Set native field offset 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::VertexInputBindingDescription

Contract

Native structure VkVertexInputBindingDescription.

Khronos reference: VkVertexInputBindingDescription

Fields

binding

Field
binding: u32

Native field binding.

stride

Field
stride: u32

Native field stride.

input_rate

Field
input_rate: VertexInputRate

Native field inputRate.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_binding

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

Set native field binding without native effects.

set_stride

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

Set native field stride without native effects.

set_input_rate

Method
pub fn set_input_rate(self, value: VertexInputRate) -> Self

Set native field inputRate without native effects.

clone

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

Stvk::VertexInputBindingDescription2EXT

pub struct VertexInputBindingDescription2EXT<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub binding: u32, pub stride: u32, pub input_rate: VertexInputRate, pub divisor: u32, /* private fields */ }
Native structure VkVertexInputBindingDescription2EXT.

Contract

Native structure VkVertexInputBindingDescription2EXT.

Khronos reference: VkVertexInputBindingDescription2EXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

binding

Field
binding: u32

Native field binding.

stride

Field
stride: u32

Native field stride.

input_rate

Field
input_rate: VertexInputRate

Native field inputRate.

divisor

Field
divisor: u32

Native field divisor.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_binding

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

Set native field binding without native effects.

set_stride

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

Set native field stride without native effects.

set_input_rate

Method
pub fn set_input_rate(self, value: VertexInputRate) -> Self

Set native field inputRate without native effects.

set_divisor

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

Set native field divisor 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::VertexInputBindingDivisorDescription

Contract

Native structure VkVertexInputBindingDivisorDescription.

Khronos reference: VkVertexInputBindingDivisorDescription

Fields

binding

Field
binding: u32

Native field binding.

divisor

Field
divisor: u32

Native field divisor.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_binding

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

Set native field binding without native effects.

set_divisor

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

Set native field divisor without native effects.

clone

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

Stvk::VertexInputRate

Contract

Open integer representation of VkVertexInputRate.

Khronos reference: VkVertexInputRate

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.

fmt

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

default

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

eq

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