Skip to content

technoir-lab/vulkan-kotlin

Repository files navigation

Vulkan Kotlin

Build Maven Central Version

Kotlin Multiplatform bindings for Vulkan API, which add features like type safety, RAII, exceptions and integration with the Kotlin ecosystem.

Getting Started

Add vulkan-kotlin dependency to your KMP project:

kotlin {
   sourceSets.commonMain {
       dependencies {
           implementation("io.technoirlab.vulkan:vulkan-kotlin:<latest version>")
       }
   }
}

Load Vulkan API and create instance:

val vulkan = Vulkan()
val instance = vulkan.createInstance()
...

For more information, please see the API reference and a sample project.

Supported targets

  • androidNativeArm64
  • iosArm64
  • iosSimulatorArm64
  • linuxArm64
  • linuxX64
  • macosArm64
  • mingwX64

Unsupported functionality

  • Render passes and framebuffers (de-facto deprecated)
  • Custom memory allocators (will be added in the future)
  • Raytracing (will be added in the future)
  • Multiview

About

Kotlin/Native bindings for Vulkan API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages