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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aXrSwapchainCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintarraySize(int value) Sets the specified value to thearraySizefield.static XrSwapchainCreateInfocalloc()Returns a newXrSwapchainCreateInfoinstance allocated withmemCalloc.static XrSwapchainCreateInfo.Buffercalloc(int capacity) Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withmemCalloc.static XrSwapchainCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSwapchainCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainCreateInfocalloc(MemoryStack stack) Returns a newXrSwapchainCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainCreateInfocreate()Returns a newXrSwapchainCreateInfoinstance allocated withBufferUtils.static XrSwapchainCreateInfo.Buffercreate(int capacity) Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withBufferUtils.static XrSwapchainCreateInfocreate(long address) Returns a newXrSwapchainCreateInfoinstance for the specified memory address.static XrSwapchainCreateInfo.Buffercreate(long address, int capacity) Create aXrSwapchainCreateInfo.Bufferinstance at the specified memory.longcreateFlags(long value) Sets the specified value to thecreateFlagsfield.static @Nullable XrSwapchainCreateInfocreateSafe(long address) static @Nullable XrSwapchainCreateInfo.BuffercreateSafe(long address, int capacity) intfaceCount(int value) Sets the specified value to thefaceCountfield.longformat()format(long value) Sets the specified value to theformatfield.intheight()height(int value) Sets the specified value to theheightfield.static XrSwapchainCreateInfomalloc()Returns a newXrSwapchainCreateInfoinstance allocated withmemAlloc.static XrSwapchainCreateInfo.Buffermalloc(int capacity) Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withmemAlloc.static XrSwapchainCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSwapchainCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainCreateInfomalloc(MemoryStack stack) Returns a newXrSwapchainCreateInfoinstance allocated on the specifiedMemoryStack.intmipCount()mipCount(int value) Sets the specified value to themipCountfield.static intnarraySize(long struct) Unsafe version ofarraySize().static voidnarraySize(long struct, int value) Unsafe version ofarraySize.static longncreateFlags(long struct) Unsafe version ofcreateFlags().static voidncreateFlags(long struct, long value) Unsafe version ofcreateFlags.longnext()next(long value) Sets the specified value to thenextfield.Prepends the specifiedXrSecondaryViewConfigurationSwapchainCreateInfoMSFTvalue to thenextchain.Prepends the specifiedXrSwapchainCreateInfoFoveationFBvalue to thenextchain.Prepends the specifiedXrVulkanSwapchainCreateInfoMETAvalue to thenextchain.static intnfaceCount(long struct) Unsafe version offaceCount().static voidnfaceCount(long struct, int value) Unsafe version offaceCount.static longnformat(long struct) Unsafe version offormat().static voidnformat(long struct, long value) Unsafe version offormat.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static intnmipCount(long struct) Unsafe version ofmipCount().static voidnmipCount(long struct, int value) Unsafe version ofmipCount.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnsampleCount(long struct) Unsafe version ofsampleCount().static voidnsampleCount(long struct, int value) Unsafe version ofsampleCount.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static longnusageFlags(long struct) Unsafe version ofusageFlags().static voidnusageFlags(long struct, long value) Unsafe version ofusageFlags.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.intsampleCount(int value) Sets the specified value to thesampleCountfield.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.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SWAPCHAIN_CREATE_INFOvalue to thetypefield.longusageFlags(long value) Sets the specified value to theusageFlagsfield.intwidth()width(int value) Sets the specified value to thewidthfield.Methods 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. -
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 aXrSwapchainCreateInfoinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSwapchainCreateInfo>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
createFlags
public long createFlags()- Returns:
- the value of the
createFlagsfield.
-
usageFlags
public long usageFlags()- Returns:
- the value of the
usageFlagsfield.
-
format
public long format()- Returns:
- the value of the
formatfield.
-
sampleCount
public int sampleCount()- Returns:
- the value of the
sampleCountfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
faceCount
public int faceCount()- Returns:
- the value of the
faceCountfield.
-
arraySize
public int arraySize()- Returns:
- the value of the
arraySizefield.
-
mipCount
public int mipCount()- Returns:
- the value of the
mipCountfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SWAPCHAIN_CREATE_INFOvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
next
Prepends the specifiedXrSecondaryViewConfigurationSwapchainCreateInfoMSFTvalue to thenextchain. -
next
Prepends the specifiedXrSwapchainCreateInfoFoveationFBvalue to thenextchain. -
next
Prepends the specifiedXrVulkanSwapchainCreateInfoMETAvalue to thenextchain. -
createFlags
Sets the specified value to thecreateFlagsfield. -
usageFlags
Sets the specified value to theusageFlagsfield. -
format
Sets the specified value to theformatfield. -
sampleCount
Sets the specified value to thesampleCountfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
faceCount
Sets the specified value to thefaceCountfield. -
arraySize
Sets the specified value to thearraySizefield. -
mipCount
Sets the specified value to themipCountfield. -
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 newXrSwapchainCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSwapchainCreateInfoinstance allocated withBufferUtils. -
create
Returns a newXrSwapchainCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSwapchainCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSwapchainCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSwapchainCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSwapchainCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-