LWJGL Forum

Programming => Vulkan => Topic started by: sfulham on December 25, 2019, 05:06:07

Title: How to initialize VkApplicationInfo
Post 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!
Title: Re: How to initialize VkApplicationInfo
Post by: ealrann on December 25, 2019, 09:42:26
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
Title: Re: How to initialize VkApplicationInfo
Post by: abcdef on January 10, 2020, 13:04:59
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/