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.NativeResourceData required for passing Vulkan textures toSubmit. Be sure to callShutdownInternalbefore destroying these resources.Please see https://github.com/ValveSoftware/openvr/wiki/Vulkan for Vulkan-specific documentation.
Layout
struct VRVulkanTextureData_t { uint64_tm_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 classVRVulkanTextureData.BufferAn array ofVRVulkanTextureDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NFORMAT
M_NHEIGHT
M_NIMAGE
M_NQUEUEFAMILYINDEX
M_NSAMPLECOUNT
M_NWIDTH
M_PDEVICE
M_PINSTANCE
M_PPHYSICALDEVICE
M_PQUEUEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRVulkanTextureData(java.nio.ByteBuffer container)Creates aVRVulkanTextureDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 VRVulkanTextureDatacallocStack()Deprecated.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 VRVulkanTextureDatacreateSafe(long address)static VRVulkanTextureData.BuffercreateSafe(long address, int capacity)intm_nFormat()VRVulkanTextureDatam_nFormat(int value)Sets the specified value to them_nFormatfield.intm_nHeight()VRVulkanTextureDatam_nHeight(int value)Sets the specified value to them_nHeightfield.longm_nImage()VkImageVRVulkanTextureDatam_nImage(long value)Sets the specified value to them_nImage()field.intm_nQueueFamilyIndex()VRVulkanTextureDatam_nQueueFamilyIndex(int value)Sets the specified value to them_nQueueFamilyIndexfield.intm_nSampleCount()VRVulkanTextureDatam_nSampleCount(int value)Sets the specified value to them_nSampleCountfield.intm_nWidth()VRVulkanTextureDatam_nWidth(int value)Sets the specified value to them_nWidthfield.longm_pDevice()VRVulkanTextureDatam_pDevice(long value)Sets the specified value to them_pDevicefield.longm_pInstance()VRVulkanTextureDatam_pInstance(long value)Sets the specified value to them_pInstancefield.longm_pPhysicalDevice()VRVulkanTextureDatam_pPhysicalDevice(long value)Sets the specified value to them_pPhysicalDevicefield.longm_pQueue()VRVulkanTextureDatam_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 VRVulkanTextureDatamallocStack()Deprecated.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.VRVulkanTextureDataset(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.VRVulkanTextureDataset(VRVulkanTextureData src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VRVulkanTextureData
public VRVulkanTextureData(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
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_pDevicefield.
-
m_pPhysicalDevice
public VRVulkanTextureData m_pPhysicalDevice(long value)
Sets the specified value to them_pPhysicalDevicefield.
-
m_pInstance
public VRVulkanTextureData m_pInstance(long value)
Sets the specified value to them_pInstancefield.
-
m_pQueue
public VRVulkanTextureData m_pQueue(long value)
Sets the specified value to them_pQueuefield.
-
m_nQueueFamilyIndex
public VRVulkanTextureData m_nQueueFamilyIndex(int value)
Sets the specified value to them_nQueueFamilyIndexfield.
-
m_nWidth
public VRVulkanTextureData m_nWidth(int value)
Sets the specified value to them_nWidthfield.
-
m_nHeight
public VRVulkanTextureData m_nHeight(int value)
Sets the specified value to them_nHeightfield.
-
m_nFormat
public VRVulkanTextureData m_nFormat(int value)
Sets the specified value to them_nFormatfield.
-
m_nSampleCount
public VRVulkanTextureData m_nSampleCount(int value)
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
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 newVRVulkanTextureDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRVulkanTextureData calloc()
Returns a newVRVulkanTextureDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRVulkanTextureData create()
Returns a newVRVulkanTextureDatainstance allocated withBufferUtils.
-
create
public static VRVulkanTextureData create(long address)
Returns a newVRVulkanTextureDatainstance for the specified memory address.
-
createSafe
@Nullable public static VRVulkanTextureData createSafe(long address)
-
malloc
public static VRVulkanTextureData.Buffer malloc(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRVulkanTextureData.Buffer calloc(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(int capacity)
Returns a newVRVulkanTextureData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureData.Buffer create(long address, int capacity)
Create aVRVulkanTextureData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRVulkanTextureData.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VRVulkanTextureData mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRVulkanTextureData callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRVulkanTextureData mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VRVulkanTextureData callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VRVulkanTextureData.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VRVulkanTextureData.Buffer callocStack(int capacity)
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
public static VRVulkanTextureData malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VRVulkanTextureData calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VRVulkanTextureData.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VRVulkanTextureData.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureData.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-