LWJGL Forum
Programming => Vulkan => Topic started by: sfulham on December 25, 2019, 05:06:07
-
Hello all,
How am I supposed to initialize a VkApplicationInfo?
BTW I am trying to follow https://vulkan-tutorial.com/
Thanks!
-
Hi,
There are some Vulkan demo in the LWJGL repository, it's a good start :
https://github.com/LWJGL/lwjgl3-demos/blob/master/src/org/lwjgl/demo/vulkan/TriangleDemo.java
-
Normally you can do something like VkApplicationInfo.calloc(). You can then chain the methods to set the data, they should have the same name as the structs.
There is another method using stacks but I am not so familiar with stacks. My vulkan renderer currently just uses calloc's. Look at strategy 5 here
https://blog.lwjgl.org/memory-management-in-lwjgl-3/