Skip to content

Device

lve_device

the first thing is creating a vulkan instance,intilize the vulkan library and the connection between our applicaton and vulkan .

next set up the validation layer. enable validation layer to check for errors, vulkan sensitive to errors, small errors will result crash

  1. Initializing vulkan and picking a physical device (that capable to working vulkan api)

  2. steup validation layer to debug

typedef pointer:

typedef existing_type* new_pointer_type;

typedef int* IntPointer; // define a pointer that point to Int

IntPointer p1, p2; // same as int* p1; int* p2;

using existed type and give it alias.