Package org.lwjgl.openxr
Class XrSwapchainCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrSwapchainCreateInfo {
XrStructureType type;
void const * next;
XrSwapchainCreateFlags createFlags;
XrSwapchainUsageFlags usageFlags;
int64_t format;
uint32_t sampleCount;
uint32_t width;
uint32_t height;
uint32_t faceCount;
uint32_t arraySize;
uint32_t mipCount;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrSwapchainCreateInfo
(ByteBuffer container) Creates aXrSwapchainCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
arraySize
(int value) Sets the specified value to thearraySize
field.static XrSwapchainCreateInfo
calloc()
Returns a newXrSwapchainCreateInfo
instance allocated withmemCalloc
.static XrSwapchainCreateInfo.Buffer
calloc
(int capacity) Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withmemCalloc
.static XrSwapchainCreateInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSwapchainCreateInfo
calloc
(MemoryStack stack) Returns a newXrSwapchainCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSwapchainCreateInfo
create()
Returns a newXrSwapchainCreateInfo
instance allocated withBufferUtils
.static XrSwapchainCreateInfo.Buffer
create
(int capacity) Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withBufferUtils
.static XrSwapchainCreateInfo
create
(long address) Returns a newXrSwapchainCreateInfo
instance for the specified memory address.static XrSwapchainCreateInfo.Buffer
create
(long address, int capacity) Create aXrSwapchainCreateInfo.Buffer
instance at the specified memory.long
createFlags
(long value) Sets the specified value to thecreateFlags
field.static @Nullable XrSwapchainCreateInfo
createSafe
(long address) static @Nullable XrSwapchainCreateInfo.Buffer
createSafe
(long address, int capacity) int
faceCount
(int value) Sets the specified value to thefaceCount
field.long
format()
format
(long value) Sets the specified value to theformat
field.int
height()
height
(int value) Sets the specified value to theheight
field.static XrSwapchainCreateInfo
malloc()
Returns a newXrSwapchainCreateInfo
instance allocated withmemAlloc
.static XrSwapchainCreateInfo.Buffer
malloc
(int capacity) Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withmemAlloc
.static XrSwapchainCreateInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static XrSwapchainCreateInfo
malloc
(MemoryStack stack) Returns a newXrSwapchainCreateInfo
instance allocated on the specifiedMemoryStack
.int
mipCount()
mipCount
(int value) Sets the specified value to themipCount
field.static int
narraySize
(long struct) Unsafe version ofarraySize()
.static void
narraySize
(long struct, int value) Unsafe version ofarraySize
.static long
ncreateFlags
(long struct) Unsafe version ofcreateFlags()
.static void
ncreateFlags
(long struct, long value) Unsafe version ofcreateFlags
.long
next()
next
(long value) Sets the specified value to thenext
field.Prepends the specifiedXrSecondaryViewConfigurationSwapchainCreateInfoMSFT
value to thenext
chain.Prepends the specifiedXrSwapchainCreateInfoFoveationFB
value to thenext
chain.Prepends the specifiedXrVulkanSwapchainCreateInfoMETA
value to thenext
chain.static int
nfaceCount
(long struct) Unsafe version offaceCount()
.static void
nfaceCount
(long struct, int value) Unsafe version offaceCount
.static long
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, long value) Unsafe version offormat
.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static int
nmipCount
(long struct) Unsafe version ofmipCount()
.static void
nmipCount
(long struct, int value) Unsafe version ofmipCount
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static int
nsampleCount
(long struct) Unsafe version ofsampleCount()
.static void
nsampleCount
(long struct, int value) Unsafe version ofsampleCount
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static long
nusageFlags
(long struct) Unsafe version ofusageFlags()
.static void
nusageFlags
(long struct, long value) Unsafe version ofusageFlags
.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.int
sampleCount
(int value) Sets the specified value to thesampleCount
field.set
(int type, long next, long createFlags, long usageFlags, long format, int sampleCount, int width, int height, int faceCount, int arraySize, int mipCount) Initializes this struct with the specified values.set
(XrSwapchainCreateInfo src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_SWAPCHAIN_CREATE_INFO
value to thetype
field.long
usageFlags
(long value) Sets the specified value to theusageFlags
field.int
width()
width
(int value) Sets the specified value to thewidth
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
CREATEFLAGS
public static final int CREATEFLAGSThe struct member offsets. -
USAGEFLAGS
public static final int USAGEFLAGSThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
SAMPLECOUNT
public static final int SAMPLECOUNTThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
FACECOUNT
public static final int FACECOUNTThe struct member offsets. -
ARRAYSIZE
public static final int ARRAYSIZEThe struct member offsets. -
MIPCOUNT
public static final int MIPCOUNTThe struct member offsets.
-
-
Constructor Details
-
XrSwapchainCreateInfo
Creates aXrSwapchainCreateInfo
instance at the current position of the specifiedByteBuffer
container. 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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrSwapchainCreateInfo>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
createFlags
public long createFlags()- Returns:
- the value of the
createFlags
field.
-
usageFlags
public long usageFlags()- Returns:
- the value of the
usageFlags
field.
-
format
public long format()- Returns:
- the value of the
format
field.
-
sampleCount
public int sampleCount()- Returns:
- the value of the
sampleCount
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
faceCount
public int faceCount()- Returns:
- the value of the
faceCount
field.
-
arraySize
public int arraySize()- Returns:
- the value of the
arraySize
field.
-
mipCount
public int mipCount()- Returns:
- the value of the
mipCount
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_SWAPCHAIN_CREATE_INFO
value to thetype
field. -
next
Sets the specified value to thenext
field. -
next
Prepends the specifiedXrSecondaryViewConfigurationSwapchainCreateInfoMSFT
value to thenext
chain. -
next
Prepends the specifiedXrSwapchainCreateInfoFoveationFB
value to thenext
chain. -
next
Prepends the specifiedXrVulkanSwapchainCreateInfoMETA
value to thenext
chain. -
createFlags
Sets the specified value to thecreateFlags
field. -
usageFlags
Sets the specified value to theusageFlags
field. -
format
Sets the specified value to theformat
field. -
sampleCount
Sets the specified value to thesampleCount
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
faceCount
Sets the specified value to thefaceCount
field. -
arraySize
Sets the specified value to thearraySize
field. -
mipCount
Sets the specified value to themipCount
field. -
set
public XrSwapchainCreateInfo set(int type, long next, long createFlags, long usageFlags, long format, int sampleCount, int width, int height, int faceCount, int arraySize, int mipCount) 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 newXrSwapchainCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSwapchainCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newXrSwapchainCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSwapchainCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSwapchainCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSwapchainCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSwapchainCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nnext
public static long nnext(long struct) Unsafe version ofnext()
. -
ncreateFlags
public static long ncreateFlags(long struct) Unsafe version ofcreateFlags()
. -
nusageFlags
public static long nusageFlags(long struct) Unsafe version ofusageFlags()
. -
nformat
public static long nformat(long struct) Unsafe version offormat()
. -
nsampleCount
public static int nsampleCount(long struct) Unsafe version ofsampleCount()
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
nfaceCount
public static int nfaceCount(long struct) Unsafe version offaceCount()
. -
narraySize
public static int narraySize(long struct) Unsafe version ofarraySize()
. -
nmipCount
public static int nmipCount(long struct) Unsafe version ofmipCount()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext
. -
ncreateFlags
public static void ncreateFlags(long struct, long value) Unsafe version ofcreateFlags
. -
nusageFlags
public static void nusageFlags(long struct, long value) Unsafe version ofusageFlags
. -
nformat
public static void nformat(long struct, long value) Unsafe version offormat
. -
nsampleCount
public static void nsampleCount(long struct, int value) Unsafe version ofsampleCount
. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight
. -
nfaceCount
public static void nfaceCount(long struct, int value) Unsafe version offaceCount
. -
narraySize
public static void narraySize(long struct, int value) Unsafe version ofarraySize
. -
nmipCount
public static void nmipCount(long struct, int value) Unsafe version ofmipCount
.
-