public static Vk GetApi(ref InstanceCreateInfo info, ref AllocationCallbacks callbacks) { var api = GetApi(ref info, ref callbacks, out var instance); api.CurrentInstance = instance; return(api); }
public static unsafe Vk GetApi(ref InstanceCreateInfo info) { var api = GetApi(ref info, out var instance); api.CurrentInstance = instance; return(api); }
public static Vk GetApi(ref InstanceCreateInfo info, ref AllocationCallbacks callbacks, out Instance instance) { var sym = new VkLoader(LibraryLoader.GetPlatformDefaultLoader()); var ret = LibraryLoader <Vk> .Load(new VulkanLibraryNameContainer(), sym); sym.Vulkan = ret; ret.CreateInstance(ref info, ref callbacks, out instance); return(ret); }
public static unsafe Vk GetApi(ref InstanceCreateInfo info) { var sym = new VkLoader(LibraryLoader.GetPlatformDefaultLoader()); var ret = LibraryLoader <Vk> .Load(new VulkanLibraryNameContainer(), sym); sym.Vulkan = ret; Instance instance; fixed(InstanceCreateInfo *infoPtr = &info) { ret.CreateInstance(infoPtr, null, &instance); } ret.CurrentInstance = instance; return(ret); }
public static Vk GetApi(InstanceCreateInfo info) => GetApi(ref info);
public static Vk GetApi(InstanceCreateInfo info, out Instance instance) => GetApi(ref info, out instance);