Realm

vk::load · Enums · C1

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

EnRustExperimental

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, }, }
A Vulkan driver failure or a missing command (entry, instance or device level).

Contract

A Vulkan driver failure or a missing command (entry, instance or device level).

Fields

EnumerationUnstable.field.attempts

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

FeatureNotEnabled.field.structure

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

FeatureNotEnabled.field.member

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

SliceLengthMismatch.field.parameter

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

SliceLengthMismatch.field.expected

Field
expected: usize
No public source comment is attached to this declaration.

SliceLengthMismatch.field.actual

Field
actual: usize
No public source comment is attached to this declaration.

Variants

Construction

Variant
Construction(ConstructionError)

Checked host-side record construction failed before any native effects.

EnumerationUnstable

Variant
EnumerationUnstable

The native enumeration did not stabilize within the bounded retry budget.

InitializationFailed

Variant
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

Variant
Vulkan(Result)
No public source comment is attached to this declaration.

MissingCommand

Variant
MissingCommand(&'static str)
No public source comment is attached to this declaration.

InvalidMetadata

Variant
InvalidMetadata(&'static str)

Invalid caller-supplied creation/import metadata; no native effect occurred.

FeatureNotEnabled

Variant
FeatureNotEnabled

A required exact feature-record member is disabled or unrecorded.

HostAllocationFailed

Variant
HostAllocationFailed
No public source comment is attached to this declaration.

InvalidOutput

Variant
InvalidOutput(&'static str)
No public source comment is attached to this declaration.

CountOverflow

Variant
CountOverflow(usize)
No public source comment is attached to this declaration.

SliceLengthMismatch

Variant
SliceLengthMismatch

An output/parallel slice does not match its native input count.

Methods and associated items

fmt

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

fmt-1

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

source

Method
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more

from

Method
fn from(error: CallError) -> Self
Converts to this type from the input type.

from-1

Method
fn from(error: ConstructionError) -> Self
Converts to this type from the input type.

from-2

Method
fn from(r: Result) -> Self

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

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

Envk::load::CommandSupport

pub enum CommandSupport { Enabled, Disabled, RequiresPhysicalDevice, }
Version/extension admission for one exact command spelling. This does not validate enabled feature bits, parameters or Vulkan valid usage.

Contract

Version/extension admission for one exact command spelling. This does not validate enabled feature bits, parameters or Vulkan valid usage.

Variants

Enabled

Variant
Enabled
No public source comment is attached to this declaration.

Disabled

Variant
Disabled
No public source comment is attached to this declaration.

RequiresPhysicalDevice

Variant
RequiresPhysicalDevice

An instance-level query depends on support on the selected physical device.

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: &CommandSupport) -> bool
Tests for 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

Variant
Instance(InstanceHandle)
No public source comment is attached to this declaration.

Device

Variant
Device(DeviceHandle)
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: &CreatedHandle) -> bool
Tests for self and other values to be equal, and is used by ==.