Top Description Inners Fields Constructors Methods
org.lwjgl.openvr

public Class VRVulkanTextureData

extends Struct<VRVulkanTextureData>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct VRVulkanTextureData_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
M_NFORMAT

The struct member offsets.

public static final int
M_NHEIGHT

The struct member offsets.

public static final int
M_NIMAGE

The struct member offsets.

public static final int
M_NQUEUEFAMILYINDEX

The struct member offsets.

public static final int
M_NSAMPLECOUNT

The struct member offsets.

public static final int
M_NWIDTH

The struct member offsets.

public static final int
M_PDEVICE

The struct member offsets.

public static final int
M_PINSTANCE

The struct member offsets.

public static final int
M_PPHYSICALDEVICE

The struct member offsets.

public static final int
M_PQUEUE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VRVulkanTextureData(long address, ByteBuffer container)

public
VRVulkanTextureData(ByteBuffer container)

Creates a VRVulkanTextureData instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VRVulkanTextureData
calloc()

Returns a new VRVulkanTextureData instance allocated with memCalloc.

public static VRVulkanTextureData.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VRVulkanTextureData.Buffer instance allocated with memCalloc.

public static VRVulkanTextureData
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VRVulkanTextureData instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VRVulkanTextureData.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VRVulkanTextureData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VRVulkanTextureData
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VRVulkanTextureData
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VRVulkanTextureData
create()

Returns a new VRVulkanTextureData instance allocated with BufferUtils.

public static VRVulkanTextureData
create(long address)

Returns a new VRVulkanTextureData instance for the specified memory address.

public static VRVulkanTextureData.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VRVulkanTextureData.Buffer instance allocated with BufferUtils.

public static VRVulkanTextureData.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VRVulkanTextureData.Buffer instance at the specified memory.

public static VRVulkanTextureData
createSafe(long address)

Like create, but returns null if address is NULL.

public static VRVulkanTextureData.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the m_nFormat field.
m_nFormat
()

public VRVulkanTextureData
m_nFormat(int value)

Sets the specified value to the m_nFormat field.

public int

Returns:

the value of the m_nHeight field.
m_nHeight
()

public VRVulkanTextureData
m_nHeight(int value)

Sets the specified value to the m_nHeight field.

public long
m_nImage()

VkImage

public VRVulkanTextureData
m_nImage(long value)

Sets the specified value to the m_nImage field.

public int

Returns:

the value of the m_nQueueFamilyIndex field.
m_nQueueFamilyIndex
()

public VRVulkanTextureData
m_nQueueFamilyIndex(int value)

Sets the specified value to the m_nQueueFamilyIndex field.

public int

Returns:

the value of the m_nSampleCount field.
m_nSampleCount
()

public VRVulkanTextureData
m_nSampleCount(int value)

Sets the specified value to the m_nSampleCount field.

public int

Returns:

the value of the m_nWidth field.
m_nWidth
()

public VRVulkanTextureData
m_nWidth(int value)

Sets the specified value to the m_nWidth field.

public long

Returns:

the value of the m_pDevice field.
m_pDevice
()

public VRVulkanTextureData
m_pDevice(long value)

Sets the specified value to the m_pDevice field.

public long

Returns:

the value of the m_pInstance field.
m_pInstance
()

public VRVulkanTextureData
m_pInstance(long value)

Sets the specified value to the m_pInstance field.

public long

Returns:

the value of the m_pPhysicalDevice field.
m_pPhysicalDevice
()

public VRVulkanTextureData
m_pPhysicalDevice(long value)

Sets the specified value to the m_pPhysicalDevice field.

public long

Returns:

the value of the m_pQueue field.
m_pQueue
()

public VRVulkanTextureData
m_pQueue(long value)

Sets the specified value to the m_pQueue field.

public static VRVulkanTextureData
malloc()

Returns a new VRVulkanTextureData instance allocated with memAlloc.

public static VRVulkanTextureData.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VRVulkanTextureData.Buffer instance allocated with memAlloc.

public static VRVulkanTextureData
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VRVulkanTextureData instance allocated on the specified MemoryStack.

public static VRVulkanTextureData.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VRVulkanTextureData.Buffer instance allocated on the specified MemoryStack.

public static VRVulkanTextureData
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VRVulkanTextureData.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nm_nFormat(long struct)

Unsafe version of m_nFormat.

public static void
nm_nFormat(long struct, int value)

Unsafe version of m_nFormat.

public static int
nm_nHeight(long struct)

Unsafe version of m_nHeight.

public static void
nm_nHeight(long struct, int value)

Unsafe version of m_nHeight.

public static long
nm_nImage(long struct)

Unsafe version of m_nImage.

public static void
nm_nImage(long struct, long value)

Unsafe version of m_nImage.

public static int
nm_nQueueFamilyIndex(long struct)

Unsafe version of m_nQueueFamilyIndex.

public static void
nm_nQueueFamilyIndex(long struct, int value)

Unsafe version of m_nQueueFamilyIndex.

public static int
nm_nSampleCount(long struct)

Unsafe version of m_nSampleCount.

public static void
nm_nSampleCount(long struct, int value)

Unsafe version of m_nSampleCount.

public static int
nm_nWidth(long struct)

Unsafe version of m_nWidth.

public static void
nm_nWidth(long struct, int value)

Unsafe version of m_nWidth.

public static long
nm_pDevice(long struct)

Unsafe version of m_pDevice.

public static void
nm_pDevice(long struct, long value)

Unsafe version of m_pDevice.

public static long
nm_pInstance(long struct)

Unsafe version of m_pInstance.

public static void
nm_pInstance(long struct, long value)

Unsafe version of m_pInstance.

public static long
nm_pPhysicalDevice(long struct)

Unsafe version of m_pPhysicalDevice.

public static void
nm_pPhysicalDevice(long struct, long value)

Unsafe version of m_pPhysicalDevice.

public static long
nm_pQueue(long struct)

Unsafe version of m_pQueue.

public static void
nm_pQueue(long struct, long value)

Unsafe version of m_pQueue.

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.

public VRVulkanTextureData

Returns:

this struct
set
(VRVulkanTextureData
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate