Class VRVulkanTextureData

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

    public class VRVulkanTextureData
    extends Struct
    implements 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.

    Member documentation

    • m_nImage – VkImage

    Layout

    
     struct VRVulkanTextureData_t {
         uint64_t m_nImage;
         VkDevice_T * m_pDevice;
         VkPhysicalDevice_T * m_pPhysicalDevice;
         VkInstance_T * m_pInstance;
         VkQueue_T * m_pQueue;
         uint32_t m_nQueueFamilyIndex;
         uint32_t m_nWidth;
         uint32_t m_nHeight;
         uint32_t m_nFormat;
         uint32_t m_nSampleCount;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_NIMAGE, M_PDEVICE, M_PPHYSICALDEVICE, M_PINSTANCE, M_PQUEUE, M_NQUEUEFAMILYINDEX, M_NWIDTH, M_NHEIGHT, M_NFORMAT, M_NSAMPLECOUNT

        The struct member offsets.
    • Constructor Detail

      • VRVulkanTextureData

        public VRVulkanTextureData​(java.nio.ByteBuffer container)
        Creates a VRVulkanTextureData 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • m_nImage

        public long m_nImage()
        Returns the value of the m_nImage 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_pInstance

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

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

        public int m_nQueueFamilyIndex()
        Returns the value of the m_nQueueFamilyIndex field.
      • m_nWidth

        public int m_nWidth()
        Returns the value of the m_nWidth field.
      • m_nHeight

        public int m_nHeight()
        Returns the value of the m_nHeight field.
      • m_nFormat

        public int m_nFormat()
        Returns the value of the m_nFormat field.
      • m_nSampleCount

        public int m_nSampleCount()
        Returns the value of the m_nSampleCount field.
      • m_nImage

        public VRVulkanTextureData m_nImage​(long value)
        Sets the specified value to the m_nImage field.
      • m_pDevice

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

        public VRVulkanTextureData m_pPhysicalDevice​(long value)
        Sets the specified value to the m_pPhysicalDevice field.
      • m_pInstance

        public VRVulkanTextureData m_pInstance​(long value)
        Sets the specified value to the m_pInstance field.
      • m_pQueue

        public VRVulkanTextureData m_pQueue​(long value)
        Sets the specified value to the m_pQueue field.
      • m_nQueueFamilyIndex

        public VRVulkanTextureData m_nQueueFamilyIndex​(int value)
        Sets the specified value to the m_nQueueFamilyIndex field.
      • m_nWidth

        public VRVulkanTextureData m_nWidth​(int value)
        Sets the specified value to the m_nWidth field.
      • m_nHeight

        public VRVulkanTextureData m_nHeight​(int value)
        Sets the specified value to the m_nHeight field.
      • m_nFormat

        public VRVulkanTextureData m_nFormat​(int value)
        Sets the specified value to the m_nFormat field.
      • m_nSampleCount

        public VRVulkanTextureData m_nSampleCount​(int value)
        Sets the specified value to the m_nSampleCount field.
      • set

        public VRVulkanTextureData set​(long m_nImage,
                                       long m_pDevice,
                                       long m_pPhysicalDevice,
                                       long m_pInstance,
                                       long m_pQueue,
                                       int m_nQueueFamilyIndex,
                                       int m_nWidth,
                                       int m_nHeight,
                                       int m_nFormat,
                                       int m_nSampleCount)
        Initializes this struct with the specified values.
      • createSafe

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

        public static long nm_nImage​(long struct)
        Unsafe version of m_nImage().
      • 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_pInstance

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

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

        public static int nm_nQueueFamilyIndex​(long struct)
        Unsafe version of m_nQueueFamilyIndex().
      • nm_nWidth

        public static int nm_nWidth​(long struct)
        Unsafe version of m_nWidth().
      • nm_nHeight

        public static int nm_nHeight​(long struct)
        Unsafe version of m_nHeight().
      • nm_nFormat

        public static int nm_nFormat​(long struct)
        Unsafe version of m_nFormat().
      • nm_nSampleCount

        public static int nm_nSampleCount​(long struct)
        Unsafe version of m_nSampleCount().
      • nm_nImage

        public static void nm_nImage​(long struct,
                                     long value)
        Unsafe version of m_nImage.
      • 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_pInstance

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

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

        public static void nm_nQueueFamilyIndex​(long struct,
                                                int value)
        Unsafe version of m_nQueueFamilyIndex.
      • nm_nWidth

        public static void nm_nWidth​(long struct,
                                     int value)
        Unsafe version of m_nWidth.
      • nm_nHeight

        public static void nm_nHeight​(long struct,
                                      int value)
        Unsafe version of m_nHeight.
      • nm_nFormat

        public static void nm_nFormat​(long struct,
                                      int value)
        Unsafe version of m_nFormat.
      • nm_nSampleCount

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

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

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array