Package org.lwjgl.openvr
Class VRVulkanTextureData
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVRVulkanTextureData
(ByteBuffer container) Creates aVRVulkanTextureData
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRVulkanTextureData
calloc()
Returns a newVRVulkanTextureData
instance allocated withmemCalloc
.static VRVulkanTextureData.Buffer
calloc
(int capacity) Returns a newVRVulkanTextureData.Buffer
instance allocated withmemCalloc
.static VRVulkanTextureData.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRVulkanTextureData
calloc
(MemoryStack stack) Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRVulkanTextureData
Deprecated.static VRVulkanTextureData.Buffer
callocStack
(int capacity) Deprecated.static VRVulkanTextureData.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VRVulkanTextureData
callocStack
(MemoryStack stack) Deprecated.static VRVulkanTextureData
create()
Returns a newVRVulkanTextureData
instance allocated withBufferUtils
.static VRVulkanTextureData.Buffer
create
(int capacity) Returns a newVRVulkanTextureData.Buffer
instance allocated withBufferUtils
.static VRVulkanTextureData
create
(long address) Returns a newVRVulkanTextureData
instance for the specified memory address.static VRVulkanTextureData.Buffer
create
(long address, int capacity) Create aVRVulkanTextureData.Buffer
instance at the specified memory.static VRVulkanTextureData
createSafe
(long address) static VRVulkanTextureData.Buffer
createSafe
(long address, int capacity) int
m_nFormat
(int value) Sets the specified value to them_nFormat
field.int
m_nHeight
(int value) Sets the specified value to them_nHeight
field.long
m_nImage()
VkImagem_nImage
(long value) Sets the specified value to them_nImage()
field.int
m_nQueueFamilyIndex
(int value) Sets the specified value to them_nQueueFamilyIndex
field.int
m_nSampleCount
(int value) Sets the specified value to them_nSampleCount
field.int
m_nWidth()
m_nWidth
(int value) Sets the specified value to them_nWidth
field.long
m_pDevice
(long value) Sets the specified value to them_pDevice
field.long
m_pInstance
(long value) Sets the specified value to them_pInstance
field.long
m_pPhysicalDevice
(long value) Sets the specified value to them_pPhysicalDevice
field.long
m_pQueue()
m_pQueue
(long value) Sets the specified value to them_pQueue
field.static VRVulkanTextureData
malloc()
Returns a newVRVulkanTextureData
instance allocated withmemAlloc
.static VRVulkanTextureData.Buffer
malloc
(int capacity) Returns a newVRVulkanTextureData.Buffer
instance allocated withmemAlloc
.static VRVulkanTextureData.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
.static VRVulkanTextureData
malloc
(MemoryStack stack) Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
.static VRVulkanTextureData
Deprecated.static VRVulkanTextureData.Buffer
mallocStack
(int capacity) Deprecated.static VRVulkanTextureData.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VRVulkanTextureData
mallocStack
(MemoryStack stack) Deprecated.static int
nm_nFormat
(long struct) Unsafe version ofm_nFormat()
.static void
nm_nFormat
(long struct, int value) Unsafe version ofm_nFormat
.static int
nm_nHeight
(long struct) Unsafe version ofm_nHeight()
.static void
nm_nHeight
(long struct, int value) Unsafe version ofm_nHeight
.static long
nm_nImage
(long struct) Unsafe version ofm_nImage()
.static void
nm_nImage
(long struct, long value) Unsafe version ofm_nImage
.static int
nm_nQueueFamilyIndex
(long struct) Unsafe version ofm_nQueueFamilyIndex()
.static void
nm_nQueueFamilyIndex
(long struct, int value) Unsafe version ofm_nQueueFamilyIndex
.static int
nm_nSampleCount
(long struct) Unsafe version ofm_nSampleCount()
.static void
nm_nSampleCount
(long struct, int value) Unsafe version ofm_nSampleCount
.static int
nm_nWidth
(long struct) Unsafe version ofm_nWidth()
.static void
nm_nWidth
(long struct, int value) Unsafe version ofm_nWidth
.static long
nm_pDevice
(long struct) Unsafe version ofm_pDevice()
.static void
nm_pDevice
(long struct, long value) Unsafe version ofm_pDevice
.static long
nm_pInstance
(long struct) Unsafe version ofm_pInstance()
.static void
nm_pInstance
(long struct, long value) Unsafe version ofm_pInstance
.static long
nm_pPhysicalDevice
(long struct) Unsafe version ofm_pPhysicalDevice()
.static void
nm_pPhysicalDevice
(long struct, long value) Unsafe version ofm_pPhysicalDevice
.static long
nm_pQueue
(long struct) Unsafe version ofm_pQueue()
.static void
nm_pQueue
(long struct, long value) Unsafe version ofm_pQueue
.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
(VRVulkanTextureData src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_NIMAGE
public static final int M_NIMAGEThe struct member offsets. -
M_PDEVICE
public static final int M_PDEVICEThe struct member offsets. -
M_PPHYSICALDEVICE
public static final int M_PPHYSICALDEVICEThe struct member offsets. -
M_PINSTANCE
public static final int M_PINSTANCEThe struct member offsets. -
M_PQUEUE
public static final int M_PQUEUEThe struct member offsets. -
M_NQUEUEFAMILYINDEX
public static final int M_NQUEUEFAMILYINDEXThe struct member offsets. -
M_NWIDTH
public static final int M_NWIDTHThe struct member offsets. -
M_NHEIGHT
public static final int M_NHEIGHTThe struct member offsets. -
M_NFORMAT
public static final int M_NFORMATThe struct member offsets. -
M_NSAMPLECOUNT
public static final int M_NSAMPLECOUNTThe struct member offsets.
-
-
Constructor Details
-
VRVulkanTextureData
Creates aVRVulkanTextureData
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VRVulkanTextureData>
-
m_nImage
public long m_nImage()VkImage -
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
Sets the specified value to them_nImage()
field. -
m_pDevice
Sets the specified value to them_pDevice
field. -
m_pPhysicalDevice
Sets the specified value to them_pPhysicalDevice
field. -
m_pInstance
Sets the specified value to them_pInstance
field. -
m_pQueue
Sets the specified value to them_pQueue
field. -
m_nQueueFamilyIndex
Sets the specified value to them_nQueueFamilyIndex
field. -
m_nWidth
Sets the specified value to them_nWidth
field. -
m_nHeight
Sets the specified value to them_nHeight
field. -
m_nFormat
Sets the specified value to them_nFormat
field. -
m_nSampleCount
Sets the specified value to them_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. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVRVulkanTextureData
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVRVulkanTextureData
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVRVulkanTextureData
instance allocated withBufferUtils
. -
create
Returns a newVRVulkanTextureData
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVRVulkanTextureData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVRVulkanTextureData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVRVulkanTextureData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVRVulkanTextureData.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
-