Skip to main content

Crate vk

Crate vk 

Source
Expand description

Vulkan ABI and cached native dispatch, with one implementation per operation.

Cargo package: vkrust. Rust import namespace: vk. Core ABI exports, including StdVideo codec definitions, are available at the crate root.

let info = vk::InstanceCreateInfo::default();
assert_eq!(info.s_type, vk::StructureType::INSTANCE_CREATE_INFO);
let _: vk::core::InstanceHandle = vk::InstanceHandle::NULL;

Re-exports§

pub use load::CallError;
pub use load::Capabilities;
pub use load::CommandSupport;
pub use load::CreatedHandle;
pub use load::Entry;
pub use load::FeatureValue;
pub use load::Features;
pub use load::InitializationFailure;
pub use load::LoadError;
pub use memory::AllocError;
pub use memory::AllocRequest;
pub use memory::Allocation;
pub use memory::Allocator;
pub use memory::VirtualAllocation;
pub use memory::VirtualBlock;
pub use core::*;

Modules§

core
Vulkan ABI types, cached dispatch and native function/method calls.
load
Open the OS Vulkan library and initialize cached entry-point dispatch.
memory
Checked memory selection, separate storage and explicit pooled buffers.