Interface VKLoadFunc


public interface VKLoadFunc

The Vulkan loading function.

Example

VK.create(GLFW::glfwGetInstanceProcAddress);
pInstance = stack.allocate(ADDRESS);                     // VkInstance instance;
vkCreateInstance(createInfo.segment(), NULL, pInstance); // vkCreateInstance(createInfo, NULL,
instance = new VkInstance(pInstance.get(ADDRESS, 0L));   //     &instance);
// disposing
VK.destroy();
Since:
0.1.0
Author:
squid233
  • Method Details

    • invoke

      MemorySegment invoke(MemorySegment segment, MemorySegment name)
      Gets the function pointer of the given Vulkan function.
      Parameters:
      segment - the VkInstance or VkDevice
      name - the name of the function.
      Returns:
      the function pointer.
    • invoke

      default MemorySegment invoke(MemorySegment segment, String name)
      Gets the function pointer of the given Vulkan function.
      Parameters:
      segment - the VkInstance or VkDevice
      name - the name of the function.
      Returns:
      the function pointer.
    • invoke

      default MemorySegment invoke(MemorySegment segment, String name, String... aliases)
      Gets the function pointer of the given Vulkan function.
      Parameters:
      segment - the VkInstance or VkDevice
      name - the name of the function.
      aliases - the aliases to be used
      Returns:
      the function pointer.