vulkan_rs

Crates.iovulkan_rs
lib.rsvulkan_rs
version1.0.62
sourcesrc
created_at2016-02-21 15:59:46.78979
updated_at2017-10-08 18:43:43.046275
descriptionVulkan bindings for the rust programming language.
homepagehttps://github.com/HellButcher/vulkan-rs
repositoryhttps://github.com/HellButcher/vulkan-rs.git
max_upload_size
id4238
size758,122
Christoph H (HellButcher)

documentation

README

vulkan_rs

Vulkan bindings for the rust programming language.

Build Status License

Overview

  • Crate vulkan_rs

    Version Docs

  • Crate vulkan_rs_generator

    Version Docs

Basic usage

[dependencies]
vulkan_rs = "1.0.62"
extern crate vulkan_rs;
[...]
use vulkan_rs::prelude::*;
[...]
fn main() {
  [...]
  let app_aame = CString::new("Application name").unwrap();
  let app_info = VkApplicationInfo {
      sType: VK_STRUCTURE_TYPE_APPLICATION_INFO,
      pNext: vk_null(),
      pApplicationName: app_aame.as_ptr(),
      applicationVersion: 1,
      pEngineName: app_aame.as_ptr(),
      engineVersion: 1,
      apiVersion: VK_API_VERSION_1_0,
  };
  let create_info = VkInstanceCreateInfo {
      sType: VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
      pNext: vk_null(),
      flags: 0,
      pApplicationInfo: &app_info,
      enabledLayerCount: 0,
      ppEnabledLayerNames: vk_null(),
      enabledExtensionCount: 0,
      ppEnabledExtensionNames: vk_null(),
  };
  let instance = vkCreateInstance(&create_info, None).unwrap();
  [...]
}
Commit count: 64

cargo fmt