Class VulkanLWJGLRect2Ds
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLRect2Ds
Functions to pack rectangles.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.lwjgl.vulkan.VkRect2Dpack(org.lwjgl.system.MemoryStack stack, VulkanRectangle2D info) Pack a structure.static org.lwjgl.vulkan.VkRect2DpackInto(org.lwjgl.system.MemoryStack stack, VulkanRectangle2D source, org.lwjgl.vulkan.VkRect2D target) Pack a structure.static org.lwjgl.vulkan.VkRect2D.BufferpackList(org.lwjgl.system.MemoryStack stack, List<VulkanRectangle2D> infos) Pack structures.static org.lwjgl.vulkan.VkRect2D.BufferpackListOrNull(org.lwjgl.system.MemoryStack stack, List<VulkanRectangle2D> infos) Pack structures.
-
Method Details
-
pack
public static org.lwjgl.vulkan.VkRect2D pack(org.lwjgl.system.MemoryStack stack, VulkanRectangle2D info) Pack a structure.- Parameters:
stack- A stackinfo- A structure- Returns:
- A packed structure
-
packInto
public static org.lwjgl.vulkan.VkRect2D packInto(org.lwjgl.system.MemoryStack stack, VulkanRectangle2D source, org.lwjgl.vulkan.VkRect2D target) Pack a structure.- Parameters:
stack- A stacksource- The input structuretarget- The output structure- Returns:
- A packed structure
-
packList
public static org.lwjgl.vulkan.VkRect2D.Buffer packList(org.lwjgl.system.MemoryStack stack, List<VulkanRectangle2D> infos) throws VulkanException Pack structures.- Parameters:
stack- A stackinfos- A list of structure- Returns:
- A list of packed structure
- Throws:
VulkanException- On errors
-
packListOrNull
public static org.lwjgl.vulkan.VkRect2D.Buffer packListOrNull(org.lwjgl.system.MemoryStack stack, List<VulkanRectangle2D> infos) throws VulkanException Pack structures.- Parameters:
stack- A stackinfos- A list of structure- Returns:
- A list of packed structure
- Throws:
VulkanException- On errors
-