Package org.lwjgl.openvr
Class VRVulkanTextureData
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRVulkanTextureData>
org.lwjgl.openvr.VRVulkanTextureData
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRVulkanTextureData
extends org.lwjgl.system.Struct<VRVulkanTextureData>
implements org.lwjgl.system.NativeResource
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 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 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
ConstructorsConstructorDescriptionVRVulkanTextureData(ByteBuffer container) Creates aVRVulkanTextureDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRVulkanTextureDatacalloc()Returns a newVRVulkanTextureDatainstance allocated withmemCalloc.static VRVulkanTextureData.Buffercalloc(int capacity) Returns a newVRVulkanTextureData.Bufferinstance allocated withmemCalloc.static VRVulkanTextureData.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureDatacalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureDataDeprecated.static VRVulkanTextureData.BuffercallocStack(int capacity) Deprecated.static VRVulkanTextureData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRVulkanTextureDatacallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable VRVulkanTextureDatacreateSafe(long address) static @Nullable VRVulkanTextureData.BuffercreateSafe(long address, int capacity) intm_nFormat(int value) Sets the specified value to them_nFormatfield.intm_nHeight(int value) Sets the specified value to them_nHeightfield.longm_nImage()VkImagem_nImage(long value) Sets the specified value to them_nImage()field.intm_nQueueFamilyIndex(int value) Sets the specified value to them_nQueueFamilyIndexfield.intm_nSampleCount(int value) Sets the specified value to them_nSampleCountfield.intm_nWidth()m_nWidth(int value) Sets the specified value to them_nWidthfield.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.static VRVulkanTextureDatamalloc()Returns a newVRVulkanTextureDatainstance allocated withmemAlloc.static VRVulkanTextureData.Buffermalloc(int capacity) Returns a newVRVulkanTextureData.Bufferinstance allocated withmemAlloc.static VRVulkanTextureData.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStack.static VRVulkanTextureDatamalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStack.static VRVulkanTextureDataDeprecated.static VRVulkanTextureData.BuffermallocStack(int capacity) Deprecated.static VRVulkanTextureData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VRVulkanTextureDatamallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.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.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_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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VRVulkanTextureData>
-
m_nImage
public long m_nImage()VkImage -
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_pInstance
public long m_pInstance()- Returns:
- the value of the
m_pInstancefield.
-
m_pQueue
public long m_pQueue()- Returns:
- the value of the
m_pQueuefield.
-
m_nQueueFamilyIndex
public int m_nQueueFamilyIndex()- Returns:
- the value of the
m_nQueueFamilyIndexfield.
-
m_nWidth
public int m_nWidth()- Returns:
- the value of the
m_nWidthfield.
-
m_nHeight
public int m_nHeight()- Returns:
- the value of the
m_nHeightfield.
-
m_nFormat
public int m_nFormat()- Returns:
- the value of the
m_nFormatfield.
-
m_nSampleCount
public int m_nSampleCount()- Returns:
- the value of the
m_nSampleCountfield.
-
m_nImage
Sets the specified value to them_nImage()field. -
m_pDevice
Sets the specified value to them_pDevicefield. -
m_pPhysicalDevice
Sets the specified value to them_pPhysicalDevicefield. -
m_pInstance
Sets the specified value to them_pInstancefield. -
m_pQueue
Sets the specified value to them_pQueuefield. -
m_nQueueFamilyIndex
Sets the specified value to them_nQueueFamilyIndexfield. -
m_nWidth
Sets the specified value to them_nWidthfield. -
m_nHeight
Sets the specified value to them_nHeightfield. -
m_nFormat
Sets the specified value to them_nFormatfield. -
m_nSampleCount
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVRVulkanTextureDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRVulkanTextureDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRVulkanTextureDatainstance allocated withBufferUtils. -
create
Returns a newVRVulkanTextureDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRVulkanTextureData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRVulkanTextureData.Bufferinstance 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 public static VRVulkanTextureData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VRVulkanTextureData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStackand 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
-