Class VRVulkanTextureArrayData

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VRVulkanTextureArrayData
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Data required for passing Vulkan textures to Submit. Be sure to call ShutdownInternal before destroying these resources.

    Please see https://github.com/ValveSoftware/openvr/wiki/Vulkan for Vulkan-specific documentation.

    Layout

    
     struct VRVulkanTextureArrayData_t {
         uint32_t m_unArrayIndex;
         uint32_t m_unArraySize;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_UNARRAYINDEX, M_UNARRAYSIZE

        The struct member offsets.
    • Constructor Detail

      • VRVulkanTextureArrayData

        public VRVulkanTextureArrayData​(java.nio.ByteBuffer container)
        Creates a VRVulkanTextureArrayData instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • m_unArrayIndex

        public int m_unArrayIndex()
        Returns:
        the value of the m_unArrayIndex field.
      • m_unArraySize

        public int m_unArraySize()
        Returns:
        the value of the m_unArraySize field.
      • m_unArrayIndex

        public VRVulkanTextureArrayData m_unArrayIndex​(int value)
        Sets the specified value to the m_unArrayIndex field.
      • m_unArraySize

        public VRVulkanTextureArrayData m_unArraySize​(int value)
        Sets the specified value to the m_unArraySize field.
      • set

        public VRVulkanTextureArrayData set​(int m_unArrayIndex,
                                            int m_unArraySize)
        Initializes this struct with the specified values.
      • malloc

        public static VRVulkanTextureArrayData malloc()
        Returns a new VRVulkanTextureArrayData instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VRVulkanTextureArrayData calloc()
        Returns a new VRVulkanTextureArrayData instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VRVulkanTextureArrayData create()
        Returns a new VRVulkanTextureArrayData instance allocated with BufferUtils.
      • create

        public static VRVulkanTextureArrayData create​(long address)
        Returns a new VRVulkanTextureArrayData instance for the specified memory address.
      • malloc

        public static VRVulkanTextureArrayData malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VRVulkanTextureArrayData instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VRVulkanTextureArrayData calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VRVulkanTextureArrayData instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VRVulkanTextureArrayData.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VRVulkanTextureArrayData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nm_unArrayIndex

        public static int nm_unArrayIndex​(long struct)
        Unsafe version of m_unArrayIndex().
      • nm_unArraySize

        public static int nm_unArraySize​(long struct)
        Unsafe version of m_unArraySize().
      • nm_unArrayIndex

        public static void nm_unArrayIndex​(long struct,
                                           int value)
        Unsafe version of m_unArrayIndex.
      • nm_unArraySize

        public static void nm_unArraySize​(long struct,
                                          int value)
        Unsafe version of m_unArraySize.