Package org.lwjgl.openvr
Class VRVulkanTextureArrayData
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRVulkanTextureArrayData>
org.lwjgl.openvr.VRVulkanTextureArrayData
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRVulkanTextureArrayData
extends org.lwjgl.system.Struct<VRVulkanTextureArrayData>
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 VRVulkanTextureArrayData_t {
uint32_t m_unArrayIndex;
uint32_t m_unArraySize;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVRVulkanTextureArrayData(ByteBuffer container) Creates aVRVulkanTextureArrayDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VRVulkanTextureArrayDatacalloc()Returns a newVRVulkanTextureArrayDatainstance allocated withmemCalloc.calloc(int capacity) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureArrayDatacalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRVulkanTextureArrayDatacreate()Returns a newVRVulkanTextureArrayDatainstance allocated withBufferUtils.create(int capacity) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withBufferUtils.static VRVulkanTextureArrayDatacreate(long address) Returns a newVRVulkanTextureArrayDatainstance for the specified memory address.create(long address, int capacity) Create aVRVulkanTextureArrayData.Bufferinstance at the specified memory.static @Nullable VRVulkanTextureArrayDatacreateSafe(long address) static @Nullable VRVulkanTextureArrayData.BuffercreateSafe(long address, int capacity) intm_unArrayIndex(int value) Sets the specified value to them_unArrayIndexfield.intm_unArraySize(int value) Sets the specified value to them_unArraySizefield.static VRVulkanTextureArrayDatamalloc()Returns a newVRVulkanTextureArrayDatainstance allocated withmemAlloc.malloc(int capacity) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated on the specifiedMemoryStack.static VRVulkanTextureArrayDatamalloc(org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayDatainstance allocated on the specifiedMemoryStack.static intnm_unArrayIndex(long struct) Unsafe version ofm_unArrayIndex().static voidnm_unArrayIndex(long struct, int value) Unsafe version ofm_unArrayIndex.static intnm_unArraySize(long struct) Unsafe version ofm_unArraySize().static voidnm_unArraySize(long struct, int value) Unsafe version ofm_unArraySize.set(int m_unArrayIndex, int m_unArraySize) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()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_UNARRAYINDEX
public static final int M_UNARRAYINDEXThe struct member offsets. -
M_UNARRAYSIZE
public static final int M_UNARRAYSIZEThe struct member offsets.
-
-
Constructor Details
-
VRVulkanTextureArrayData
Creates aVRVulkanTextureArrayDatainstance 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<VRVulkanTextureArrayData>
-
m_unArrayIndex
public int m_unArrayIndex()- Returns:
- the value of the
m_unArrayIndexfield.
-
m_unArraySize
public int m_unArraySize()- Returns:
- the value of the
m_unArraySizefield.
-
m_unArrayIndex
Sets the specified value to them_unArrayIndexfield. -
m_unArraySize
Sets the specified value to them_unArraySizefield. -
set
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 newVRVulkanTextureArrayDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVRVulkanTextureArrayDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVRVulkanTextureArrayDatainstance allocated withBufferUtils. -
create
Returns a newVRVulkanTextureArrayDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVRVulkanTextureArrayData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVRVulkanTextureArrayDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVRVulkanTextureArrayDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VRVulkanTextureArrayData.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VRVulkanTextureArrayData.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVRVulkanTextureArrayData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_unArrayIndex
public static int nm_unArrayIndex(long struct) Unsafe version ofm_unArrayIndex(). -
nm_unArraySize
public static int nm_unArraySize(long struct) Unsafe version ofm_unArraySize(). -
nm_unArrayIndex
public static void nm_unArrayIndex(long struct, int value) Unsafe version ofm_unArrayIndex. -
nm_unArraySize
public static void nm_unArraySize(long struct, int value) Unsafe version ofm_unArraySize.
-