vk::load · Enums · C1
3 public declarations with native signatures and source-owned contracts.
Envk::load::CallError
pub enum CallError {
Construction(ConstructionError),
EnumerationUnstable {
attempts: u32,
},
InitializationFailed(InitializationFailure),
Vulkan(Result),
MissingCommand(&'static str),
InvalidMetadata(&'static str),
FeatureNotEnabled {
structure: StructureType,
member: &'static str,
},
HostAllocationFailed,
InvalidOutput(&'static str),
CountOverflow(usize),
SliceLengthMismatch {
parameter: &'static str,
expected: usize,
actual: usize,
},
}Contract
A Vulkan driver failure or a missing command (entry, instance or device level).
Fields
EnumerationUnstable.field.attempts
attempts: u32FeatureNotEnabled.field.structure
structure: StructureTypeFeatureNotEnabled.field.member
member: &'static strSliceLengthMismatch.field.parameter
parameter: &'static strSliceLengthMismatch.field.expected
expected: usizeSliceLengthMismatch.field.actual
actual: usizeVariants
Construction
Construction(ConstructionError)Checked host-side record construction failed before any native effects.
EnumerationUnstable
EnumerationUnstableThe native enumeration did not stabilize within the bounded retry budget.
InitializationFailed
InitializationFailed(InitializationFailure)Native creation succeeded but cleanup could not be resolved. Handle this variant explicitly to recover the still-live object and retained library.
Vulkan
Vulkan(Result)MissingCommand
MissingCommand(&'static str)InvalidMetadata
InvalidMetadata(&'static str)Invalid caller-supplied creation/import metadata; no native effect occurred.
FeatureNotEnabled
FeatureNotEnabledA required exact feature-record member is disabled or unrecorded.
HostAllocationFailed
HostAllocationFailedInvalidOutput
InvalidOutput(&'static str)CountOverflow
CountOverflow(usize)SliceLengthMismatch
SliceLengthMismatchAn output/parallel slice does not match its native input count.
Methods and associated items
fmt
fmt-1
source
from
from-1
from-2
Lift a non-success VkResult into a CallError.
Callers that only expect VK_SUCCESS can use ? on a vk::Result once
it is inside a Result<_, CallError> context.
eq
self and other values to be equal, and is used by ==.Envk::load::CommandSupport
Contract
Version/extension admission for one exact command spelling. This does not validate enabled feature bits, parameters or Vulkan valid usage.
Variants
Enabled
EnabledDisabled
DisabledRequiresPhysicalDevice
RequiresPhysicalDeviceAn instance-level query depends on support on the selected physical device.
Methods and associated items
clone
fmt
eq
self and other values to be equal, and is used by ==.Envk::load::CreatedHandle
Contract
A native object returned successfully before dispatch initialization failed.
Variants
Instance
Instance(InstanceHandle)Device
Device(DeviceHandle)Methods and associated items
clone
fmt
eq
self and other values to be equal, and is used by ==.