VkApplicationInfo appInfo = VkApplicationInfo.malloc().pApplicationName(ByteBuffer.wrap("Vulkan Test\0".getBytes()));
I've tried to find documentation but it seems like the vulkan documentation for LWJGL is a bit lackluster.
which is a far from easy API to use
Using Vulkan without first being familiar with the basics of LWJGL is bound to be an unpleasant experience. A few must-reads from the LWJGL wiki:Memory FAQBindings FAQTroubleshooting
Quote from: Scoopta on December 31, 2016, 03:49:25I've tried to find documentation but it seems like the vulkan documentation for LWJGL is a bit lackluster.LWJGL includes javadoc that covers the entirety of the Vulkan reference pages. I'm not sure what more would you need. The Vulkan specification and the very helpful validation/debug layers from the LunarG SDK are outside the scope of LWJGL.
ByteBuffer.wrap() returns a buffer managed by the Java heap. This doesn't work with native data structures.
Of the lwjgl3-demos you might want to start with: https://github.com/LWJGL/lwjgl3-demos/tree/master/src/org/lwjgl/demo/introWith Vulkan, which is stack-allocation-heavy, this can also be of interest to you: https://github.com/LWJGLX/autostack