Package org.lwjgl.openvr
Class VRVulkanDevice
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.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.NativeResourceLayout
struct VRVulkanDevice_t { VkInstance_T * m_pInstance; VkDevice_T * m_pDevice; VkPhysicalDevice_T * m_pPhysicalDevice; VkQueue_T * m_pQueue; uint32_t m_uQueueFamilyIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRVulkanDevice.BufferAn array ofVRVulkanDevicestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_PDEVICE
M_PINSTANCE
M_PPHYSICALDEVICE
M_PQUEUE
M_UQUEUEFAMILYINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRVulkanDevice(java.nio.ByteBuffer container)Creates aVRVulkanDeviceinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRVulkanDevicecalloc()Returns a newVRVulkanDeviceinstance allocated withmemCalloc.static VRVulkanDevice.Buffercalloc(int capacity)Returns a newVRVulkanDevice.Bufferinstance allocated withmemCalloc.static VRVulkanDevice.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanDevicecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanDevicecreate()Returns a newVRVulkanDeviceinstance allocated withBufferUtils.static VRVulkanDevice.Buffercreate(int capacity)Returns a newVRVulkanDevice.Bufferinstance allocated withBufferUtils.static VRVulkanDevicecreate(long address)Returns a newVRVulkanDeviceinstance for the specified memory address.static VRVulkanDevice.Buffercreate(long address, int capacity)Create aVRVulkanDevice.Bufferinstance at the specified memory.static VRVulkanDevicecreateSafe(long address)static VRVulkanDevice.BuffercreateSafe(long address, int capacity)longm_pDevice()VRVulkanDevicem_pDevice(long value)Sets the specified value to them_pDevicefield.longm_pInstance()VRVulkanDevicem_pInstance(long value)Sets the specified value to them_pInstancefield.longm_pPhysicalDevice()VRVulkanDevicem_pPhysicalDevice(long value)Sets the specified value to them_pPhysicalDevicefield.longm_pQueue()VRVulkanDevicem_pQueue(long value)Sets the specified value to them_pQueuefield.intm_uQueueFamilyIndex()VRVulkanDevicem_uQueueFamilyIndex(int value)Sets the specified value to them_uQueueFamilyIndexfield.static VRVulkanDevicemalloc()Returns a newVRVulkanDeviceinstance allocated withmemAlloc.static VRVulkanDevice.Buffermalloc(int capacity)Returns a newVRVulkanDevice.Bufferinstance allocated withmemAlloc.static VRVulkanDevice.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStack.static VRVulkanDevicemalloc(org.lwjgl.system.MemoryStack stack)Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStack.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.static intnm_uQueueFamilyIndex(long struct)Unsafe version ofm_uQueueFamilyIndex().static voidnm_uQueueFamilyIndex(long struct, int value)Unsafe version ofm_uQueueFamilyIndex.VRVulkanDeviceset(long m_pInstance, long m_pDevice, long m_pPhysicalDevice, long m_pQueue, int m_uQueueFamilyIndex)Initializes this struct with the specified values.VRVulkanDeviceset(VRVulkanDevice src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VRVulkanDevice
public VRVulkanDevice(java.nio.ByteBuffer container)
Creates aVRVulkanDeviceinstance 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_pInstance
public long m_pInstance()
- Returns:
- the value of the
m_pInstancefield.
-
m_pDevice
public long m_pDevice()
- Returns:
- the value of the
m_pDevicefield.
-
m_pPhysicalDevice
public long m_pPhysicalDevice()
- Returns:
- the value of the
m_pPhysicalDevicefield.
-
m_pQueue
public long m_pQueue()
- Returns:
- the value of the
m_pQueuefield.
-
m_uQueueFamilyIndex
public int m_uQueueFamilyIndex()
- Returns:
- the value of the
m_uQueueFamilyIndexfield.
-
m_pInstance
public VRVulkanDevice m_pInstance(long value)
Sets the specified value to them_pInstancefield.
-
m_pDevice
public VRVulkanDevice m_pDevice(long value)
Sets the specified value to them_pDevicefield.
-
m_pPhysicalDevice
public VRVulkanDevice m_pPhysicalDevice(long value)
Sets the specified value to them_pPhysicalDevicefield.
-
m_pQueue
public VRVulkanDevice m_pQueue(long value)
Sets the specified value to them_pQueuefield.
-
m_uQueueFamilyIndex
public VRVulkanDevice m_uQueueFamilyIndex(int value)
Sets the specified value to them_uQueueFamilyIndexfield.
-
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 newVRVulkanDeviceinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRVulkanDevice calloc()
Returns a newVRVulkanDeviceinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRVulkanDevice create()
Returns a newVRVulkanDeviceinstance allocated withBufferUtils.
-
create
public static VRVulkanDevice create(long address)
Returns a newVRVulkanDeviceinstance for the specified memory address.
-
createSafe
@Nullable public static VRVulkanDevice createSafe(long address)
-
malloc
public static VRVulkanDevice.Buffer malloc(int capacity)
Returns a newVRVulkanDevice.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRVulkanDevice.Buffer calloc(int capacity)
Returns a newVRVulkanDevice.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanDevice.Buffer create(int capacity)
Returns a newVRVulkanDevice.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanDevice.Buffer create(long address, int capacity)
Create aVRVulkanDevice.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRVulkanDevice.Buffer createSafe(long address, int capacity)
-
malloc
public static VRVulkanDevice malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VRVulkanDevice calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStackand 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 newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VRVulkanDevice.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm_pInstance
public static long nm_pInstance(long struct)
Unsafe version ofm_pInstance().
-
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_pQueue
public static long nm_pQueue(long struct)
Unsafe version ofm_pQueue().
-
nm_uQueueFamilyIndex
public static int nm_uQueueFamilyIndex(long struct)
Unsafe version ofm_uQueueFamilyIndex().
-
nm_pInstance
public static void nm_pInstance(long struct, long value)Unsafe version ofm_pInstance.
-
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_pQueue
public static void nm_pQueue(long struct, long value)Unsafe version ofm_pQueue.
-
nm_uQueueFamilyIndex
public static void nm_uQueueFamilyIndex(long struct, int value)Unsafe version ofm_uQueueFamilyIndex.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-