Realm

vk::load · Structs · F1

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

StRustExperimental

Stvk::load::Features

Contract

Snapshot of exact feature records used to create a device.

Individual extension and unified core records are distinct representations; this snapshot does not invent equivalence between equal member names. Native type aliases share the same sType. Legacy base features are represented by PHYSICAL_DEVICE_FEATURES_2, including default-false base features.

Methods and associated items

values

Method
pub fn values(&self) -> &[FeatureValue]

Input records follow chain order; legacy/default base features follow the chain. Members within each record follow official XML declaration order.

unrecognized_structures

Method
pub fn unrecognized_structures(&self) -> &[StructureType]

Exact input records not recognized as feature records by this build. This includes ordinary non-feature device-create records. Their presence is not a feature claim, and their payload is never interpreted or retained.

enabled

Method
pub fn enabled(&self, structure: StructureType, member: &str) -> Option<bool>

Read an explicitly recorded member by its exact native representation. None means unrecorded/unknown, including alternate unified representations. A false value is an explicitly captured disabled bit, not inferred absence.

require

Method
pub fn require( &self, requirements: &[(StructureType, &'static str)], ) -> Result<(), CallError>

Admit a caller-declared set of exact feature-record requirements.

Errors

Returns FeatureNotEnabled for the first disabled or unrecorded member. This checks enabled bits only; API/extension support, limits, native object state and argument-dependent valid usage remain separate obligations.

fmt

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

Stvk::load::FeatureValue

pub struct FeatureValue { pub structure: StructureType, pub member: &'static str, pub enabled: bool, }
One explicitly captured native feature member. Names use the registry’s C spelling, so shaderInt64 remains recognizable in specification diagnostics.

Contract

One explicitly captured native feature member. Names use the registry’s C spelling, so shaderInt64 remains recognizable in specification diagnostics.

Fields

structure

Field
structure: StructureType
No public source comment is attached to this declaration.

member

Field
member: &'static str
No public source comment is attached to this declaration.

enabled

Field
enabled: bool
No public source comment is attached to this declaration.

Methods and associated items

fmt

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

eq

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