Package org.lwjgl.openvr
Class VRVulkanDevice
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRVulkanDevice>
org.lwjgl.openvr.VRVulkanDevice
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRVulkanDevice
extends org.lwjgl.system.Struct<VRVulkanDevice>
implements org.lwjgl.system.NativeResource
Layout
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRVulkanDevice(ByteBuffer container) Creates aVRVulkanDeviceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable VRVulkanDevicecreateSafe(long address) static @Nullable VRVulkanDevice.BuffercreateSafe(long address, int capacity) longm_pDevice(long value) Sets the specified value to them_pDevicefield.longm_pInstance(long value) Sets the specified value to them_pInstancefield.longm_pPhysicalDevice(long value) Sets the specified value to them_pPhysicalDevicefield.longm_pQueue()m_pQueue(long value) Sets the specified value to them_pQueuefield.intm_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.set(long m_pInstance, long m_pDevice, long m_pPhysicalDevice, long m_pQueue, int m_uQueueFamilyIndex) Initializes this struct with the specified values.set(VRVulkanDevice src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_PINSTANCE
public static final int M_PINSTANCEThe 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_PQUEUE
public static final int M_PQUEUEThe struct member offsets. -
M_UQUEUEFAMILYINDEX
public static final int M_UQUEUEFAMILYINDEXThe struct member offsets.
-
-
Constructor Details
-
VRVulkanDevice
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VRVulkanDevice>
-
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
Sets the specified value to them_pInstancefield. -
m_pDevice
Sets the specified value to them_pDevicefield. -
m_pPhysicalDevice
Sets the specified value to them_pPhysicalDevicefield. -
m_pQueue
Sets the specified value to them_pQueuefield. -
m_uQueueFamilyIndex
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVRVulkanDeviceinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRVulkanDeviceinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRVulkanDeviceinstance allocated withBufferUtils. -
create
Returns a newVRVulkanDeviceinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRVulkanDevice.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRVulkanDevice.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRVulkanDevice.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRVulkanDevice.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRVulkanDeviceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRVulkanDevice.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
-