Class VulkanLWJGLIntegerArrays


  • public final class VulkanLWJGLIntegerArrays
    extends java.lang.Object
    Functions to pack integer arrays.
    • Method Detail

      • packLongs

        public static <T> java.nio.LongBuffer packLongs​(org.lwjgl.system.MemoryStack stack,
                                                        java.util.List<T> values,
                                                        VulkanLWJGLIntegerArrays.LongGetterType<T> getter)
                                                 throws VulkanException
        Pack a list of long values.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to long
        Returns:
        A packed list
        Throws:
        VulkanException - If required
      • packLongsOrNull

        public static <T> java.nio.LongBuffer packLongsOrNull​(org.lwjgl.system.MemoryStack stack,
                                                              java.util.List<T> values,
                                                              VulkanLWJGLIntegerArrays.LongGetterType<T> getter)
                                                       throws VulkanException
        Pack a list of long values. Returns null if the input list is empty.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to long
        Returns:
        A packed list
        Throws:
        VulkanException - If required
      • packInts

        public static <T> java.nio.IntBuffer packInts​(org.lwjgl.system.MemoryStack stack,
                                                      java.util.List<T> values,
                                                      VulkanLWJGLIntegerArrays.IntGetterType<T> getter)
                                               throws VulkanException
        Pack a list of int values.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to int
        Returns:
        A packed list
        Throws:
        VulkanException - If required
      • packIntsOrNull

        public static <T> java.nio.IntBuffer packIntsOrNull​(org.lwjgl.system.MemoryStack stack,
                                                            java.util.List<T> values,
                                                            VulkanLWJGLIntegerArrays.IntGetterType<T> getter)
                                                     throws VulkanException
        Pack a list of int values. Returns null if the input list is empty.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to int
        Returns:
        A packed list
        Throws:
        VulkanException - If required
      • packPointers

        public static <T> org.lwjgl.PointerBuffer packPointers​(org.lwjgl.system.MemoryStack stack,
                                                               java.util.List<T> values,
                                                               VulkanLWJGLIntegerArrays.LongGetterType<T> getter)
                                                        throws VulkanException
        Pack a list of pointer values.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to long
        Returns:
        A packed list
        Throws:
        VulkanException - If required
      • packPointersOrNull

        public static <T> org.lwjgl.PointerBuffer packPointersOrNull​(org.lwjgl.system.MemoryStack stack,
                                                                     java.util.List<T> values,
                                                                     VulkanLWJGLIntegerArrays.LongGetterType<T> getter)
                                                              throws VulkanException
        Pack a list of pointer values. Returns null if the input list is empty.
        Type Parameters:
        T - The type of input values
        Parameters:
        stack - The stack
        values - The input list
        getter - A function from T to long
        Returns:
        A packed list
        Throws:
        VulkanException - If required