Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
gradle/wrapper
shaders
src
LICENSE.md
README.md
build.gradle.kts
settings.gradle.kts

README.md

kotlin-gradle-templates / vulkan-triangle-glfw

Quick start kotlin multiplatform Vulkan Triangle example using GLFW

This code programmed for Windows and MSYS2

Usage

The code is ready to execute

If you have gradle in path, then invoke gradle as

 gradle assemble

If you have wrapper for linux

 ./gradlew assemble

If you have wrapper for windows

 .\gradlew assemble

Then execute bellow task to start the app

 .\gradlew copyDlls
 .\gradlew runReleaseExecutableLibgnuplot

For executing the exe in windows, copy "shaders" folder to exe folder

The app will open a windows and display a triangle

Important: many optimization codes were removed to make the code smaller, this code is only for demo

For better output: fences, barrier, uniform buffer etc are mandatory as per Vulkan recommendations

References

Web: vulkan-tutorial.com

GitHub: Alexander Overvoorde

CodeProject: Igor Kushnarev

GitLab: Horribile

You can’t perform that action at this time.