Class VRVulkanTextureArrayData

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRVulkanTextureArrayData>
org.lwjgl.openvr.VRVulkanTextureArrayData
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VRVulkanTextureArrayData extends org.lwjgl.system.Struct<VRVulkanTextureArrayData> 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 Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • M_UNARRAYINDEX

      public static final int M_UNARRAYINDEX
      The struct member offsets.
    • M_UNARRAYSIZE

      public static final int M_UNARRAYSIZE
      The struct member offsets.
  • Constructor Details

    • VRVulkanTextureArrayData

      public VRVulkanTextureArrayData(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VRVulkanTextureArrayData>
    • 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.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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.
    • createSafe

      public static @Nullable VRVulkanTextureArrayData createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VRVulkanTextureArrayData.Buffer malloc(int capacity)
      Returns a new VRVulkanTextureArrayData.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VRVulkanTextureArrayData.Buffer calloc(int capacity)
      Returns a new VRVulkanTextureArrayData.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VRVulkanTextureArrayData.Buffer create(int capacity)
      Returns a new VRVulkanTextureArrayData.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VRVulkanTextureArrayData.Buffer create(long address, int capacity)
      Create a VRVulkanTextureArrayData.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VRVulkanTextureArrayData.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • 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
    • malloc

      public static VRVulkanTextureArrayData.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VRVulkanTextureArrayData.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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.