Interface VKLoadFunc


public interface VKLoadFunc

The Vulkan loading function.

Example

VK.create(GLFW::glfwGetInstanceProcAddress);
pInstance = stack.allocVoidPtr();                        // VkInstance instance;
vkCreateInstance(createInfo.segment(), NULL,             // vkCreateInstance(createInfo, NULL,
                 pInstance.segment());
instance = new VkInstance(pInstance.value());            //     &instance);
// disposing (optional)
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.