VkResult loader_create_instance_chain(const VkInstanceCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator,
struct loader_instance *inst,
- VkInstance created_instance) {
+ VkInstance *created_instance) {
uint32_t activated_layers = 0;
VkLayerInstanceCreateInfo chain_info;
VkLayerInstanceLink *layer_instance_link_info = NULL;
}
PFN_vkCreateInstance fpCreateInstance =
- (PFN_vkCreateInstance)nextGIPA(created_instance, "vkCreateInstance");
+ (PFN_vkCreateInstance)nextGIPA(*created_instance, "vkCreateInstance");
if (fpCreateInstance) {
VkLayerInstanceCreateInfo instance_create_info;
loader_create_info.pNext = &instance_create_info;
res = fpCreateInstance(&loader_create_info, pAllocator,
- &created_instance);
+ created_instance);
} else {
// Couldn't find CreateInstance function!
res = VK_ERROR_INITIALIZATION_FAILED;
// TODO: Need to clean up here
} else {
loader_init_instance_core_dispatch_table(inst->disp, nextGIPA,
- created_instance);
+ *created_instance);
}
return res;
VkResult loader_create_instance_chain(const VkInstanceCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator,
struct loader_instance *inst,
- VkInstance created_instance);
+ VkInstance *created_instance);
void loader_activate_instance_layer_extensions(struct loader_instance *inst,
VkInstance created_inst);
created_instance = (VkInstance)ptr_instance;
res = loader_create_instance_chain(pCreateInfo, pAllocator, ptr_instance,
- created_instance);
+ &created_instance);
if (res == VK_SUCCESS) {
wsi_create_instance(ptr_instance, pCreateInfo);