Class VulkanLWJGLArrays
java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLArrays
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceVulkanLWJGLArrays.BufferAllocatorType<T extends org.lwjgl.system.Struct<T>,B extends org.lwjgl.system.StructBuffer<T, B>> The type of functions that can allocate buffers for structures of typeT.static interfaceVulkanLWJGLArrays.PackingFunctionType<A,T extends org.lwjgl.system.Struct<T>> The type of functions that can pack values of typeAinto structures of typeT. -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,T extends org.lwjgl.system.Struct<T>, B extends org.lwjgl.system.StructBuffer<T, B>>
Bpack(List<A> values, VulkanLWJGLArrays.PackingFunctionType<A, T> packer, VulkanLWJGLArrays.BufferAllocatorType<T, B> allocator, org.lwjgl.system.MemoryStack stack) Pack an array of values.static <A,T extends org.lwjgl.system.Struct<T>, B extends org.lwjgl.system.StructBuffer<T, B>>
BpackOrNull(List<A> values, VulkanLWJGLArrays.PackingFunctionType<A, T> packer, VulkanLWJGLArrays.BufferAllocatorType<T, B> allocator, org.lwjgl.system.MemoryStack stack) Pack an array of values.
-
Method Details
-
pack
public static <A,T extends org.lwjgl.system.Struct<T>, B packB extends org.lwjgl.system.StructBuffer<T, B>> (List<A> values, VulkanLWJGLArrays.PackingFunctionType<A, T> packer, VulkanLWJGLArrays.BufferAllocatorType<T, throws VulkanExceptionB> allocator, org.lwjgl.system.MemoryStack stack) Pack an array of values.- Type Parameters:
A- The type of input valuesT- The type of output structsB- The type of buffers- Parameters:
values- The input valuespacker- A value packerallocator- An allocatorstack- The stack for allocations- Returns:
- An array of packed structs
- Throws:
VulkanException- On errors
-
packOrNull
public static <A,T extends org.lwjgl.system.Struct<T>, B packOrNullB extends org.lwjgl.system.StructBuffer<T, B>> (List<A> values, VulkanLWJGLArrays.PackingFunctionType<A, T> packer, VulkanLWJGLArrays.BufferAllocatorType<T, throws VulkanExceptionB> allocator, org.lwjgl.system.MemoryStack stack) Pack an array of values.- Type Parameters:
A- The type of input valuesT- The type of output structsB- The type of buffers- Parameters:
values- The input valuespacker- A value packerallocator- An allocatorstack- The stack for allocations- Returns:
- An array of packed structs
- Throws:
VulkanException- On errors
-