Package org.lwjgl.openxr
Class XrVulkanSwapchainFormatListCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrVulkanSwapchainFormatListCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrVulkanSwapchainFormatListCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA list of Vulkan view formats.Valid Usage (Implicit)
- The
XR_KHR_vulkan_swapchain_format_listextension must be enabled prior to usingXrVulkanSwapchainFormatListCreateInfoKHR typemust beTYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain- If
viewFormatCountis not 0,viewFormatsmust be a pointer to an array ofviewFormatCountvalidVkFormatvalues
See Also
Layout
struct XrVulkanSwapchainFormatListCreateInfoKHR { XrStructureTypetype(); void const *next(); uint32_tviewFormatCount(); VkFormat const *viewFormats(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrVulkanSwapchainFormatListCreateInfoKHR.BufferAn array ofXrVulkanSwapchainFormatListCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
VIEWFORMATCOUNT
VIEWFORMATSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrVulkanSwapchainFormatListCreateInfoKHR(java.nio.ByteBuffer container)Creates aXrVulkanSwapchainFormatListCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrVulkanSwapchainFormatListCreateInfoKHRcalloc()Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withmemCalloc.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffercalloc(int capacity)Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withmemCalloc.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVulkanSwapchainFormatListCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVulkanSwapchainFormatListCreateInfoKHRcreate()Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withBufferUtils.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffercreate(int capacity)Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withBufferUtils.static XrVulkanSwapchainFormatListCreateInfoKHRcreate(long address)Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance for the specified memory address.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffercreate(long address, int capacity)Create aXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance at the specified memory.static XrVulkanSwapchainFormatListCreateInfoKHRcreateSafe(long address)static XrVulkanSwapchainFormatListCreateInfoKHR.BuffercreateSafe(long address, int capacity)static XrVulkanSwapchainFormatListCreateInfoKHRmalloc()Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withmemAlloc.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffermalloc(int capacity)Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withmemAlloc.static XrVulkanSwapchainFormatListCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrVulkanSwapchainFormatListCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrVulkanSwapchainFormatListCreateInfoKHRnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnviewFormatCount(long struct)Unsafe version ofviewFormatCount().static voidnviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.static java.nio.IntBuffernviewFormats(long struct)Unsafe version ofviewFormats.static voidnviewFormats(long struct, java.nio.IntBuffer value)Unsafe version ofviewFormats.XrVulkanSwapchainFormatListCreateInfoKHRset(int type, long next, java.nio.IntBuffer viewFormats)Initializes this struct with the specified values.XrVulkanSwapchainFormatListCreateInfoKHRset(XrVulkanSwapchainFormatListCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrVulkanSwapchainFormatListCreateInfoKHRtype(int value)Sets the specified value to thetype()field.XrVulkanSwapchainFormatListCreateInfoKHRtype$Default()Sets theTYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHRvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewFormatCount()the number of view formats passed inviewFormats.java.nio.IntBufferviewFormats()an array ofVkFormat.XrVulkanSwapchainFormatListCreateInfoKHRviewFormats(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto theviewFormats()field.
-
-
-
Constructor Detail
-
XrVulkanSwapchainFormatListCreateInfoKHR
public XrVulkanSwapchainFormatListCreateInfoKHR(java.nio.ByteBuffer container)
Creates aXrVulkanSwapchainFormatListCreateInfoKHRinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
viewFormatCount
public int viewFormatCount()
the number of view formats passed inviewFormats.
-
viewFormats
@Nullable public java.nio.IntBuffer viewFormats()
an array ofVkFormat.
-
type
public XrVulkanSwapchainFormatListCreateInfoKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrVulkanSwapchainFormatListCreateInfoKHR type$Default()
Sets theTYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHRvalue to thetype()field.
-
next
public XrVulkanSwapchainFormatListCreateInfoKHR next(long value)
Sets the specified value to thenext()field.
-
viewFormats
public XrVulkanSwapchainFormatListCreateInfoKHR viewFormats(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto theviewFormats()field.
-
set
public XrVulkanSwapchainFormatListCreateInfoKHR set(int type, long next, @Nullable java.nio.IntBuffer viewFormats)
Initializes this struct with the specified values.
-
set
public XrVulkanSwapchainFormatListCreateInfoKHR set(XrVulkanSwapchainFormatListCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrVulkanSwapchainFormatListCreateInfoKHR malloc()
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrVulkanSwapchainFormatListCreateInfoKHR calloc()
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrVulkanSwapchainFormatListCreateInfoKHR create()
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static XrVulkanSwapchainFormatListCreateInfoKHR create(long address)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrVulkanSwapchainFormatListCreateInfoKHR createSafe(long address)
-
malloc
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer malloc(int capacity)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer calloc(int capacity)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer create(int capacity)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer create(long address, int capacity)
Create aXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrVulkanSwapchainFormatListCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrVulkanSwapchainFormatListCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrVulkanSwapchainFormatListCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanSwapchainFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nviewFormatCount
public static int nviewFormatCount(long struct)
Unsafe version ofviewFormatCount().
-
nviewFormats
@Nullable public static java.nio.IntBuffer nviewFormats(long struct)
Unsafe version ofviewFormats.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nviewFormatCount
public static void nviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.
-
nviewFormats
public static void nviewFormats(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofviewFormats.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-