Package org.lwjgl.openxr
Class XrSwapchainImageFoveationVulkanFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainImageFoveationVulkanFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainImageFoveationVulkanFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProfile with properties defining a foveation pattern.Valid Usage (Implicit)
- The
XR_FB_foveation_vulkanextension must be enabled prior to usingXrSwapchainImageFoveationVulkanFB typemust beTYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrSwapchainImageVulkanKHR,EnumerateSwapchainImagesLayout
struct XrSwapchainImageFoveationVulkanFB { XrStructureTypetype(); void *next(); VkImageimage(); uint32_twidth(); uint32_theight(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainImageFoveationVulkanFB.BufferAn array ofXrSwapchainImageFoveationVulkanFBstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainImageFoveationVulkanFB(java.nio.ByteBuffer container)Creates aXrSwapchainImageFoveationVulkanFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainImageFoveationVulkanFBcalloc()Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withmemCalloc.static XrSwapchainImageFoveationVulkanFB.Buffercalloc(int capacity)Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withmemCalloc.static XrSwapchainImageFoveationVulkanFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageFoveationVulkanFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageFoveationVulkanFBcreate()Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withBufferUtils.static XrSwapchainImageFoveationVulkanFB.Buffercreate(int capacity)Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withBufferUtils.static XrSwapchainImageFoveationVulkanFBcreate(long address)Returns a newXrSwapchainImageFoveationVulkanFBinstance for the specified memory address.static XrSwapchainImageFoveationVulkanFB.Buffercreate(long address, int capacity)Create aXrSwapchainImageFoveationVulkanFB.Bufferinstance at the specified memory.static XrSwapchainImageFoveationVulkanFBcreateSafe(long address)static XrSwapchainImageFoveationVulkanFB.BuffercreateSafe(long address, int capacity)intheight()the vertical height in pixels of the image.longimage()a valid VulkanVkImageto use.static XrSwapchainImageFoveationVulkanFBmalloc()Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withmemAlloc.static XrSwapchainImageFoveationVulkanFB.Buffermalloc(int capacity)Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withmemAlloc.static XrSwapchainImageFoveationVulkanFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainImageFoveationVulkanFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainImageFoveationVulkanFBnext(long value)Sets the specified value to thenext()field.static intnheight(long struct)Unsafe version ofheight().static longnimage(long struct)Unsafe version ofimage().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 intnwidth(long struct)Unsafe version ofwidth().XrSwapchainImageFoveationVulkanFBset(int type, long next)Initializes this struct with the specified values.XrSwapchainImageFoveationVulkanFBset(XrSwapchainImageFoveationVulkanFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainImageFoveationVulkanFBtype(int value)Sets the specified value to thetype()field.XrSwapchainImageFoveationVulkanFBtype$Default()Sets theTYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FBvalue to thetype()field.intwidth()the horizontal width in pixels of the image.
-
-
-
Constructor Detail
-
XrSwapchainImageFoveationVulkanFB
public XrSwapchainImageFoveationVulkanFB(java.nio.ByteBuffer container)
Creates aXrSwapchainImageFoveationVulkanFBinstance 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.
-
image
public long image()
a valid VulkanVkImageto use.
-
width
public int width()
the horizontal width in pixels of the image.
-
height
public int height()
the vertical height in pixels of the image.
-
type
public XrSwapchainImageFoveationVulkanFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSwapchainImageFoveationVulkanFB type$Default()
Sets theTYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FBvalue to thetype()field.
-
next
public XrSwapchainImageFoveationVulkanFB next(long value)
Sets the specified value to thenext()field.
-
set
public XrSwapchainImageFoveationVulkanFB set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSwapchainImageFoveationVulkanFB set(XrSwapchainImageFoveationVulkanFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainImageFoveationVulkanFB malloc()
Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainImageFoveationVulkanFB calloc()
Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainImageFoveationVulkanFB create()
Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated withBufferUtils.
-
create
public static XrSwapchainImageFoveationVulkanFB create(long address)
Returns a newXrSwapchainImageFoveationVulkanFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainImageFoveationVulkanFB createSafe(long address)
-
malloc
public static XrSwapchainImageFoveationVulkanFB.Buffer malloc(int capacity)
Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainImageFoveationVulkanFB.Buffer calloc(int capacity)
Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageFoveationVulkanFB.Buffer create(int capacity)
Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageFoveationVulkanFB.Buffer create(long address, int capacity)
Create aXrSwapchainImageFoveationVulkanFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainImageFoveationVulkanFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSwapchainImageFoveationVulkanFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainImageFoveationVulkanFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageFoveationVulkanFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainImageFoveationVulkanFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageFoveationVulkanFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainImageFoveationVulkanFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageFoveationVulkanFB.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().
-
nimage
public static long nimage(long struct)
Unsafe version ofimage().
-
nwidth
public static int nwidth(long struct)
Unsafe version ofwidth().
-
nheight
public static int nheight(long struct)
Unsafe version ofheight().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-