Hello Guest

How to initialize VkApplicationInfo

  • 2 Replies
  • 1998 Views
How to initialize VkApplicationInfo
« 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!

Re: How to initialize VkApplicationInfo
« Reply #1 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

*

Offline abcdef

  • ****
  • 324
Re: How to initialize VkApplicationInfo
« Reply #2 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/