vk::load · Structs · F1
2 public declarations with native signatures and source-owned contracts.
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
Input records follow chain order; legacy/default base features follow the chain. Members within each record follow official XML declaration order.
unrecognized_structures
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
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
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
Stvk::load::FeatureValue
Contract
One explicitly captured native feature member. Names use the registry’s C
spelling, so shaderInt64 remains recognizable in specification diagnostics.
Fields
structure
structure: StructureTypemember
member: &'static strenabled
enabled: boolMethods and associated items
clone
fmt
eq
self and other values to be equal, and is used by ==.