Package org.lwjgl.openvr
Class VRVulkanTextureArrayData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRVulkanTextureArrayData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRVulkanTextureArrayData 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 VRVulkanTextureArrayData_t { uint32_t m_unArrayIndex; uint32_t m_unArraySize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRVulkanTextureArrayData.BufferAn array ofVRVulkanTextureArrayDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_UNARRAYINDEX
M_UNARRAYSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRVulkanTextureArrayData(java.nio.ByteBuffer container)Creates aVRVulkanTextureArrayDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRVulkanTextureArrayDatacalloc()Returns a newVRVulkanTextureArrayDatainstance allocated withmemCalloc.static VRVulkanTextureArrayData.Buffercalloc(int capacity)Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemCalloc.static VRVulkanTextureArrayData.Buffercalloc(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.static VRVulkanTextureArrayData.Buffercreate(int capacity)Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withBufferUtils.static VRVulkanTextureArrayDatacreate(long address)Returns a newVRVulkanTextureArrayDatainstance for the specified memory address.static VRVulkanTextureArrayData.Buffercreate(long address, int capacity)Create aVRVulkanTextureArrayData.Bufferinstance at the specified memory.static VRVulkanTextureArrayDatacreateSafe(long address)static VRVulkanTextureArrayData.BuffercreateSafe(long address, int capacity)intm_unArrayIndex()VRVulkanTextureArrayDatam_unArrayIndex(int value)Sets the specified value to them_unArrayIndexfield.intm_unArraySize()VRVulkanTextureArrayDatam_unArraySize(int value)Sets the specified value to them_unArraySizefield.static VRVulkanTextureArrayDatamalloc()Returns a newVRVulkanTextureArrayDatainstance allocated withmemAlloc.static VRVulkanTextureArrayData.Buffermalloc(int capacity)Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemAlloc.static VRVulkanTextureArrayData.Buffermalloc(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.VRVulkanTextureArrayDataset(int m_unArrayIndex, int m_unArraySize)Initializes this struct with the specified values.VRVulkanTextureArrayDataset(VRVulkanTextureArrayData src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VRVulkanTextureArrayData
public VRVulkanTextureArrayData(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public VRVulkanTextureArrayData m_unArrayIndex(int value)
Sets the specified value to them_unArrayIndexfield.
-
m_unArraySize
public VRVulkanTextureArrayData m_unArraySize(int value)
Sets the specified value to them_unArraySizefield.
-
set
public VRVulkanTextureArrayData set(int m_unArrayIndex, int m_unArraySize)
Initializes this struct with the specified values.
-
set
public VRVulkanTextureArrayData set(VRVulkanTextureArrayData src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VRVulkanTextureArrayData malloc()
Returns a newVRVulkanTextureArrayDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRVulkanTextureArrayData calloc()
Returns a newVRVulkanTextureArrayDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRVulkanTextureArrayData create()
Returns a newVRVulkanTextureArrayDatainstance allocated withBufferUtils.
-
create
public static VRVulkanTextureArrayData create(long address)
Returns a newVRVulkanTextureArrayDatainstance for the specified memory address.
-
createSafe
@Nullable public static VRVulkanTextureArrayData createSafe(long address)
-
malloc
public static VRVulkanTextureArrayData.Buffer malloc(int capacity)
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRVulkanTextureArrayData.Buffer calloc(int capacity)
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureArrayData.Buffer create(int capacity)
Returns a newVRVulkanTextureArrayData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRVulkanTextureArrayData.Buffer create(long address, int capacity)
Create aVRVulkanTextureArrayData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRVulkanTextureArrayData.Buffer createSafe(long address, int capacity)
-
malloc
public static VRVulkanTextureArrayData malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVRVulkanTextureArrayDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VRVulkanTextureArrayData calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-