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 Summary
Modifier and TypeMethodDescriptioninvoke
(MemorySegment segment, MemorySegment name) Gets the function pointer of the given Vulkan function.default MemorySegment
invoke
(MemorySegment segment, String name) Gets the function pointer of the given Vulkan function.default MemorySegment
invoke
(MemorySegment segment, String name, String... aliases) Gets the function pointer of the given Vulkan function.
-
Method Details
-
invoke
Gets the function pointer of the given Vulkan function.- Parameters:
segment
- theVkInstance
orVkDevice
name
- the name of the function.- Returns:
- the function pointer.
-
invoke
Gets the function pointer of the given Vulkan function.- Parameters:
segment
- theVkInstance
orVkDevice
name
- the name of the function.- Returns:
- the function pointer.
-
invoke
Gets the function pointer of the given Vulkan function.- Parameters:
segment
- theVkInstance
orVkDevice
name
- the name of the function.aliases
- the aliases to be used- Returns:
- the function pointer.
-