Skip to content

Cross-platform low level Vulkan bindings for LuaJIT.

Notifications You must be signed in to change notification settings

codebycruz/vkapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vkapi

Cross-platform low level Vulkan bindings for LuaJIT.

Installation

This is intended to be used with the lpm package manager

lpm add vkapi --git https://github.com/codebycruz/vkapi

Example

You can find an example rendering a triangle in examples/triangle

Triangle example

Documentation

Currently there is no documentation, as the api is quite similar, if not identical to the Vulkan API, beyond a few changes in the way things are named. Everything is in camelCase, enums are still in SCREAMING_SNAKE_CASE but may have redundant prefixes, ie VK* or suffixes, ie _BIT, removed.

A few examples might give you the gist:

VkCreateInstance -> vk.createInstance
VkCreateBuffer -> VkDevice:createBuffer
VkQueueFlagBits(VK_QUEUE_GRAPHICS_BIT) -> vk.QueueFlagBits.GRAPHICS

Of course it is 2026 so this is entirely typed with LuaLS annotations.

About

Cross-platform low level Vulkan bindings for LuaJIT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors