Package org.lwjgl.openvr
Class VRVulkanTextureData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRVulkanTextureData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRVulkanTextureData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceData required for passing Vulkan textures toSubmit. Be sure to callShutdownInternalbefore 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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRVulkanTextureData.BufferAn array ofVRVulkanTextureDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NFORMAT
M_NHEIGHT
M_NIMAGE
M_NQUEUEFAMILYINDEX
M_NSAMPLECOUNT
M_NWIDTH
M_PDEVICE
M_PINSTANCE
M_PPHYSICALDEVICE
M_PQUEUEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRVulkanTextureData(java.nio.ByteBuffer container)Creates aVRVulkanTextureDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRVulkanTextureDatacalloc()Returns a newVRVulkanTextureDatainstance allocated withmemCalloc.static VRVulkanTextureData.Buffercalloc(int capacity)Returns a newVRVulkanTextureData.Bufferinstance allocated withmemCalloc.static VRVulkanTextureDatacallocStack()Returns a newVRVulkanTextureDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRVulkanTextureData.BuffercallocStack(int capacity)Returns a newVRVulkanTextureData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRVulkanTextureData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureDatacallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureDatacreate()Returns a newVRVulkanTextureDatainstance allocated withBufferUtils.static VRVulkanTextureData.Buffercreate(int capacity)Returns a newVRVulkanTextureData.Bufferinstance allocated withBufferUtils.static VRVulkanTextureDatacreate(long address)Returns a newVRVulkanTextureDatainstance for the specified memory address.static VRVulkanTextureData.Buffercreate(long address, int capacity)Create aVRVulkanTextureData.Bufferinstance at the specified memory.static VRVulkanTextureDatacreateSafe(long address)static VRVulkanTextureData.BuffercreateSafe(long address, int capacity)intm_nFormat()Returns the value of them_nFormatfield.VRVulkanTextureDatam_nFormat(int value)Sets the specified value to them_nFormatfield.intm_nHeight()Returns the value of them_nHeightfield.VRVulkanTextureDatam_nHeight(int value)Sets the specified value to them_nHeightfield.longm_nImage()Returns the value of them_nImagefield.VRVulkanTextureDatam_nImage(long value)Sets the specified value to them_nImagefield.intm_nQueueFamilyIndex()Returns the value of them_nQueueFamilyIndexfield.VRVulkanTextureDatam_nQueueFamilyIndex(int value)Sets the specified value to them_nQueueFamilyIndexfield.intm_nSampleCount()Returns the value of them_nSampleCountfield.VRVulkanTextureDatam_nSampleCount(int value)Sets the specified value to them_nSampleCountfield.intm_nWidth()Returns the value of them_nWidthfield.VRVulkanTextureDatam_nWidth(int value)Sets the specified value to them_nWidthfield.longm_pDevice()Returns the value of them_pDevicefield.VRVulkanTextureDatam_pDevice(long value)Sets the specified value to them_pDevicefield.longm_pInstance()Returns the value of them_pInstancefield.VRVulkanTextureDatam_pInstance(long value)Sets the specified value to them_pInstancefield.longm_pPhysicalDevice()Returns the value of them_pPhysicalDevicefield.VRVulkanTextureDatam_pPhysicalDevice(long value)Sets the specified value to them_pPhysicalDevicefield.longm_pQueue()Returns the value of them_pQueuefield.VRVulkanTextureDatam_pQueue(long value)Sets the specified value to them_pQueuefield.static VRVulkanTextureDatamalloc()Returns a newVRVulkanTextureDatainstance allocated withmemAlloc.static VRVulkanTextureData.Buffermalloc(int capacity)Returns a newVRVulkanTextureData.Bufferinstance allocated withmemAlloc.static VRVulkanTextureDatamallocStack()Returns a newVRVulkanTextureDatainstance allocated on the thread-localMemoryStack.static VRVulkanTextureData.BuffermallocStack(int capacity)Returns a newVRVulkanTextureData.Bufferinstance allocated on the thread-localMemoryStack.static VRVulkanTextureData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStack.static VRVulkanTextureDatamallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStack.static intnm_nFormat(long struct)Unsafe version ofm_nFormat().static voidnm_nFormat(long struct, int value)Unsafe version ofm_nFormat.static intnm_nHeight(long struct)Unsafe version ofm_nHeight().static voidnm_nHeight(long struct, int value)Unsafe version ofm_nHeight.static longnm_nImage(long struct)Unsafe version ofm_nImage().static voidnm_nImage(long struct, long value)Unsafe version ofm_nImage.static intnm_nQueueFamilyIndex(long struct)Unsafe version ofm_nQueueFamilyIndex().static voidnm_nQueueFamilyIndex(long struct, int value)Unsafe version ofm_nQueueFamilyIndex.static intnm_nSampleCount(long struct)Unsafe version ofm_nSampleCount().static voidnm_nSampleCount(long struct, int value)Unsafe version ofm_nSampleCount.static intnm_nWidth(long struct)Unsafe version ofm_nWidth().static voidnm_nWidth(long struct, int value)Unsafe version ofm_nWidth.static longnm_pDevice(long struct)Unsafe version ofm_pDevice().static voidnm_pDevice(long struct, long value)Unsafe version ofm_pDevice.static longnm_pInstance(long struct)Unsafe version ofm_pInstance().static voidnm_pInstance(long struct, long value)Unsafe version ofm_pInstance.static longnm_pPhysicalDevice(long struct)Unsafe version ofm_pPhysicalDevice().static voidnm_pPhysicalDevice(long struct, long value)Unsafe version ofm_pPhysicalDevice.static longnm_pQueue(long struct)Unsafe version ofm_pQueue().static voidnm_pQueue(long struct, long value)Unsafe version ofm_pQueue.VRVulkanTextureDataset(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.VRVulkanTextureDataset(VRVulkanTextureData src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VRVulkanTextureData
public VRVulkanTextureData(java.nio.ByteBuffer container)
Creates aVRVulkanTextureDatainstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
m_nImage
public long m_nImage()
Returns the value of them_nImagefield.
-
m_pDevice
public long m_pDevice()
Returns the value of them_pDevicefield.
-
m_pPhysicalDevice
public long m_pPhysicalDevice()
Returns the value of them_pPhysicalDevicefield.
-
m_pInstance
public long m_pInstance()
Returns the value of them_pInstancefield.
-
m_pQueue
public long m_pQueue()
Returns the value of them_pQueuefield.
-
m_nQueueFamilyIndex
public int m_nQueueFamilyIndex()
Returns the value of them_nQueueFamilyIndexfield.
-
m_nWidth
public int m_nWidth()
Returns the value of them_nWidthfield.
-
m_nHeight
public int m_nHeight()
Returns the value of them_nHeightfield.
-
m_nFormat
public int m_nFormat()
Returns the value of them_nFormatfield.
-
m_nSampleCount
public int m_nSampleCount()
Returns the value of them_nSampleCountfield.
-
m_nImage
public VRVulkanTextureData m_nImage(long value)
Sets the specified value to them_nImagefield.
-
m_pDevice
public VRVulkanTextureData m_pDevice(long value)
Sets the specified value to them_pDevicefield.
-
m_pPhysicalDevice
public VRVulkanTextureData m_pPhysicalDevice(long value)
Sets the specified value to them_pPhysicalDevicefield.
-
m_pInstance
public VRVulkanTextureData m_pInstance(long value)
Sets the specified value to them_pInstancefield.
-
m_pQueue
public VRVulkanTextureData m_pQueue(long value)
Sets the specified value to them_pQueuefield.
-
m_nQueueFamilyIndex
public VRVulkanTextureData m_nQueueFamilyIndex(int value)
Sets the specified value to them_nQueueFamilyIndexfield.
-
m_nWidth
public VRVulkanTextureData m_nWidth(int value)
Sets the specified value to them_nWidthfield.
-
m_nHeight
public VRVulkanTextureData m_nHeight(int value)
Sets the specified value to them_nHeightfield.
-
m_nFormat
public VRVulkanTextureData m_nFormat(int value)
Sets the specified value to them_nFormatfield.
-
m_nSampleCount
public VRVulkanTextureData m_nSampleCount(int value)
Sets the specified value to them_nSampleCountfield.
-
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.
-
set
public VRVulkanTextureData set(VRVulkanTextureData src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRVulkanTextureData malloc()
Returns a newVRVulkanTextureDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRVulkanTextureData calloc()
Returns a newVRVulkanTextureDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRVulkanTextureData create()
Returns a newVRVulkanTextureDatainstance allocated withBufferUtils.
-
create
public static VRVulkanTextureData create(long address)
Returns a newVRVulkanTextureDatainstance for the specified memory address.
-
createSafe
@Nullable public static VRVulkanTextureData createSafe(long address)
-
malloc
public static VRVulkanTextureData.Buffer malloc(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRVulkanTextureData.Buffer calloc(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(long address, int capacity)
Create aVRVulkanTextureData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRVulkanTextureData.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRVulkanTextureData mallocStack()
Returns a newVRVulkanTextureDatainstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRVulkanTextureData callocStack()
Returns a newVRVulkanTextureDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRVulkanTextureData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRVulkanTextureData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VRVulkanTextureData.Buffer mallocStack(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRVulkanTextureData.Buffer callocStack(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRVulkanTextureData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VRVulkanTextureData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm_nImage
public static long nm_nImage(long struct)
Unsafe version ofm_nImage().
-
nm_pDevice
public static long nm_pDevice(long struct)
Unsafe version ofm_pDevice().
-
nm_pPhysicalDevice
public static long nm_pPhysicalDevice(long struct)
Unsafe version ofm_pPhysicalDevice().
-
nm_pInstance
public static long nm_pInstance(long struct)
Unsafe version ofm_pInstance().
-
nm_pQueue
public static long nm_pQueue(long struct)
Unsafe version ofm_pQueue().
-
nm_nQueueFamilyIndex
public static int nm_nQueueFamilyIndex(long struct)
Unsafe version ofm_nQueueFamilyIndex().
-
nm_nWidth
public static int nm_nWidth(long struct)
Unsafe version ofm_nWidth().
-
nm_nHeight
public static int nm_nHeight(long struct)
Unsafe version ofm_nHeight().
-
nm_nFormat
public static int nm_nFormat(long struct)
Unsafe version ofm_nFormat().
-
nm_nSampleCount
public static int nm_nSampleCount(long struct)
Unsafe version ofm_nSampleCount().
-
nm_nImage
public static void nm_nImage(long struct, long value)Unsafe version ofm_nImage.
-
nm_pDevice
public static void nm_pDevice(long struct, long value)Unsafe version ofm_pDevice.
-
nm_pPhysicalDevice
public static void nm_pPhysicalDevice(long struct, long value)Unsafe version ofm_pPhysicalDevice.
-
nm_pInstance
public static void nm_pInstance(long struct, long value)Unsafe version ofm_pInstance.
-
nm_pQueue
public static void nm_pQueue(long struct, long value)Unsafe version ofm_pQueue.
-
nm_nQueueFamilyIndex
public static void nm_nQueueFamilyIndex(long struct, int value)Unsafe version ofm_nQueueFamilyIndex.
-
nm_nWidth
public static void nm_nWidth(long struct, int value)Unsafe version ofm_nWidth.
-
nm_nHeight
public static void nm_nHeight(long struct, int value)Unsafe version ofm_nHeight.
-
nm_nFormat
public static void nm_nFormat(long struct, int value)Unsafe version ofm_nFormat.
-
nm_nSampleCount
public static void nm_nSampleCount(long struct, int value)Unsafe version ofm_nSampleCount.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-