vulkan

Version, currently master branch1 version
  • master branchlatestAug 17, 2021

github.com/malte-v/vulkan.cr

Vulkan bindings to Crystal

8 stars
2 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  vulkan:
    github: malte-v/vulkan.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.28.0
License
MIT
Author
Malte Voos

Dependencies

This version declares no dependencies.

README

vulkan.cr

Vulkan bindings to Crystal.

Current Vulkan version: 1.1.101.0

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      vulkan:
        github: malte-v/vulkan.cr
  2. Run shards install

  3. Make sure the Vulkan library is in your PATH.

Usage

require "vulkan"

All the functions, structs, enums etc. are located inside lib Vk.

module Vx contains wrapper functions for Vulkan extensions so you never have to call vkGetInstanceProcAddr again. Note that structs, enums etc. related to extensions are still in lib Vk.

Contributing

  1. Fork it (https://github.com/malte-v/vulkan.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

See also

  • vez.cr - V-EZ bindings to Crystal
  • vma.cr - VulkanMemoryAllocator bindings to Crystal