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.NativeResource
Data required for passing Vulkan textures toSubmit
. Be sure to callShutdownInternal
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VRVulkanTextureData.Buffer
An array ofVRVulkanTextureData
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NFORMAT
M_NHEIGHT
M_NIMAGE
M_NQUEUEFAMILYINDEX
M_NSAMPLECOUNT
M_NWIDTH
M_PDEVICE
M_PINSTANCE
M_PPHYSICALDEVICE
M_PQUEUEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRVulkanTextureData(java.nio.ByteBuffer container)
Creates aVRVulkanTextureData
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRVulkanTextureData
calloc()
Returns a newVRVulkanTextureData
instance allocated withmemCalloc
.static VRVulkanTextureData.Buffer
calloc(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated withmemCalloc
.static VRVulkanTextureData
callocStack()
Returns a newVRVulkanTextureData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRVulkanTextureData.Buffer
callocStack(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRVulkanTextureData.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRVulkanTextureData
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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()
Returns the value of them_nFormat
field.VRVulkanTextureData
m_nFormat(int value)
Sets the specified value to them_nFormat
field.int
m_nHeight()
Returns the value of them_nHeight
field.VRVulkanTextureData
m_nHeight(int value)
Sets the specified value to them_nHeight
field.long
m_nImage()
Returns the value of them_nImage
field.VRVulkanTextureData
m_nImage(long value)
Sets the specified value to them_nImage
field.int
m_nQueueFamilyIndex()
Returns the value of them_nQueueFamilyIndex
field.VRVulkanTextureData
m_nQueueFamilyIndex(int value)
Sets the specified value to them_nQueueFamilyIndex
field.int
m_nSampleCount()
Returns the value of them_nSampleCount
field.VRVulkanTextureData
m_nSampleCount(int value)
Sets the specified value to them_nSampleCount
field.int
m_nWidth()
Returns the value of them_nWidth
field.VRVulkanTextureData
m_nWidth(int value)
Sets the specified value to them_nWidth
field.long
m_pDevice()
Returns the value of them_pDevice
field.VRVulkanTextureData
m_pDevice(long value)
Sets the specified value to them_pDevice
field.long
m_pInstance()
Returns the value of them_pInstance
field.VRVulkanTextureData
m_pInstance(long value)
Sets the specified value to them_pInstance
field.long
m_pPhysicalDevice()
Returns the value of them_pPhysicalDevice
field.VRVulkanTextureData
m_pPhysicalDevice(long value)
Sets the specified value to them_pPhysicalDevice
field.long
m_pQueue()
Returns the value of them_pQueue
field.VRVulkanTextureData
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
mallocStack()
Returns a newVRVulkanTextureData
instance allocated on the thread-localMemoryStack
.static VRVulkanTextureData.Buffer
mallocStack(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated on the thread-localMemoryStack
.static VRVulkanTextureData.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Buffer
instance allocated on the specifiedMemoryStack
.static VRVulkanTextureData
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
.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
.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.VRVulkanTextureData
set(VRVulkanTextureData src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
m_nImage
public long m_nImage()
Returns the value of them_nImage
field.
-
m_pDevice
public long m_pDevice()
Returns the value of them_pDevice
field.
-
m_pPhysicalDevice
public long m_pPhysicalDevice()
Returns the value of them_pPhysicalDevice
field.
-
m_pInstance
public long m_pInstance()
Returns the value of them_pInstance
field.
-
m_pQueue
public long m_pQueue()
Returns the value of them_pQueue
field.
-
m_nQueueFamilyIndex
public int m_nQueueFamilyIndex()
Returns the value of them_nQueueFamilyIndex
field.
-
m_nWidth
public int m_nWidth()
Returns the value of them_nWidth
field.
-
m_nHeight
public int m_nHeight()
Returns the value of them_nHeight
field.
-
m_nFormat
public int m_nFormat()
Returns the value of them_nFormat
field.
-
m_nSampleCount
public int m_nSampleCount()
Returns the value of them_nSampleCount
field.
-
m_nImage
public VRVulkanTextureData m_nImage(long value)
Sets the specified value to them_nImage
field.
-
m_pDevice
public VRVulkanTextureData m_pDevice(long value)
Sets the specified value to them_pDevice
field.
-
m_pPhysicalDevice
public VRVulkanTextureData m_pPhysicalDevice(long value)
Sets the specified value to them_pPhysicalDevice
field.
-
m_pInstance
public VRVulkanTextureData m_pInstance(long value)
Sets the specified value to them_pInstance
field.
-
m_pQueue
public VRVulkanTextureData m_pQueue(long value)
Sets the specified value to them_pQueue
field.
-
m_nQueueFamilyIndex
public VRVulkanTextureData m_nQueueFamilyIndex(int value)
Sets the specified value to them_nQueueFamilyIndex
field.
-
m_nWidth
public VRVulkanTextureData m_nWidth(int value)
Sets the specified value to them_nWidth
field.
-
m_nHeight
public VRVulkanTextureData m_nHeight(int value)
Sets the specified value to them_nHeight
field.
-
m_nFormat
public VRVulkanTextureData m_nFormat(int value)
Sets the specified value to them_nFormat
field.
-
m_nSampleCount
public VRVulkanTextureData m_nSampleCount(int value)
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
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 newVRVulkanTextureData
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRVulkanTextureData calloc()
Returns a newVRVulkanTextureData
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRVulkanTextureData create()
Returns a newVRVulkanTextureData
instance allocated withBufferUtils
.
-
create
public static VRVulkanTextureData create(long address)
Returns a newVRVulkanTextureData
instance for the specified memory address.
-
createSafe
@Nullable public static VRVulkanTextureData createSafe(long address)
-
malloc
public static VRVulkanTextureData.Buffer malloc(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRVulkanTextureData.Buffer calloc(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(long address, int capacity)
Create aVRVulkanTextureData.Buffer
instance 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 newVRVulkanTextureData
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRVulkanTextureData callocStack()
Returns a newVRVulkanTextureData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRVulkanTextureData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRVulkanTextureData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRVulkanTextureData.Buffer callocStack(int capacity)
Returns a newVRVulkanTextureData.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-