Class VRVulkanDevice

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

    public class VRVulkanDevice
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct VRVulkanDevice_t {
         VkInstance_T * m_pInstance;
         VkDevice_T * m_pDevice;
         VkPhysicalDevice_T * m_pPhysicalDevice;
         VkQueue_T * m_pQueue;
         uint32_t m_uQueueFamilyIndex;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_PINSTANCE, M_PDEVICE, M_PPHYSICALDEVICE, M_PQUEUE, M_UQUEUEFAMILYINDEX

        The struct member offsets.
    • Constructor Detail

      • VRVulkanDevice

        public VRVulkanDevice​(java.nio.ByteBuffer container)
        Creates a VRVulkanDevice 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_pInstance

        public long m_pInstance()
        Returns:
        the value of the m_pInstance field.
      • m_pDevice

        public long m_pDevice()
        Returns:
        the value of the m_pDevice field.
      • m_pPhysicalDevice

        public long m_pPhysicalDevice()
        Returns:
        the value of the m_pPhysicalDevice field.
      • m_pQueue

        public long m_pQueue()
        Returns:
        the value of the m_pQueue field.
      • m_uQueueFamilyIndex

        public int m_uQueueFamilyIndex()
        Returns:
        the value of the m_uQueueFamilyIndex field.
      • m_pInstance

        public VRVulkanDevice m_pInstance​(long value)
        Sets the specified value to the m_pInstance field.
      • m_pDevice

        public VRVulkanDevice m_pDevice​(long value)
        Sets the specified value to the m_pDevice field.
      • m_pPhysicalDevice

        public VRVulkanDevice m_pPhysicalDevice​(long value)
        Sets the specified value to the m_pPhysicalDevice field.
      • m_pQueue

        public VRVulkanDevice m_pQueue​(long value)
        Sets the specified value to the m_pQueue field.
      • m_uQueueFamilyIndex

        public VRVulkanDevice m_uQueueFamilyIndex​(int value)
        Sets the specified value to the m_uQueueFamilyIndex field.
      • set

        public VRVulkanDevice set​(long m_pInstance,
                                  long m_pDevice,
                                  long m_pPhysicalDevice,
                                  long m_pQueue,
                                  int m_uQueueFamilyIndex)
        Initializes this struct with the specified values.
      • set

        public VRVulkanDevice set​(VRVulkanDevice src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

        @Nullable
        public static VRVulkanDevice.Buffer createSafe​(long address,
                                                       int capacity)
        Like create, but returns null if address is NULL.
      • malloc

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

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

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

        public static VRVulkanDevice.Buffer calloc​(int capacity,
                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new VRVulkanDevice.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_pInstance

        public static long nm_pInstance​(long struct)
        Unsafe version of m_pInstance().
      • nm_pDevice

        public static long nm_pDevice​(long struct)
        Unsafe version of m_pDevice().
      • nm_pPhysicalDevice

        public static long nm_pPhysicalDevice​(long struct)
        Unsafe version of m_pPhysicalDevice().
      • nm_pQueue

        public static long nm_pQueue​(long struct)
        Unsafe version of m_pQueue().
      • nm_uQueueFamilyIndex

        public static int nm_uQueueFamilyIndex​(long struct)
        Unsafe version of m_uQueueFamilyIndex().
      • nm_pInstance

        public static void nm_pInstance​(long struct,
                                        long value)
        Unsafe version of m_pInstance.
      • nm_pDevice

        public static void nm_pDevice​(long struct,
                                      long value)
        Unsafe version of m_pDevice.
      • nm_pPhysicalDevice

        public static void nm_pPhysicalDevice​(long struct,
                                              long value)
        Unsafe version of m_pPhysicalDevice.
      • nm_pQueue

        public static void nm_pQueue​(long struct,
                                     long value)
        Unsafe version of m_pQueue.
      • nm_uQueueFamilyIndex

        public static void nm_uQueueFamilyIndex​(long struct,
                                                int value)
        Unsafe version of m_uQueueFamilyIndex.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate