Package org.lwjgl.openxr
Class XrSystemGraphicsProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemGraphicsProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemGraphicsProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceGraphics-related properties of a particular system.See Also
XrSystemProperties,XrSystemTrackingProperties,GetSystem,GetSystemPropertiesLayout
struct XrSystemGraphicsProperties { uint32_tmaxSwapchainImageHeight(); uint32_tmaxSwapchainImageWidth(); uint32_tmaxLayerCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemGraphicsProperties.BufferAn array ofXrSystemGraphicsPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXLAYERCOUNT
MAXSWAPCHAINIMAGEHEIGHT
MAXSWAPCHAINIMAGEWIDTHThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description XrSystemGraphicsProperties(java.nio.ByteBuffer container)Creates aXrSystemGraphicsPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemGraphicsPropertiescalloc()Returns a newXrSystemGraphicsPropertiesinstance allocated withmemCalloc.static XrSystemGraphicsProperties.Buffercalloc(int capacity)Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withmemCalloc.static XrSystemGraphicsProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemGraphicsProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemGraphicsPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemGraphicsPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemGraphicsPropertiescreate()Returns a newXrSystemGraphicsPropertiesinstance allocated withBufferUtils.static XrSystemGraphicsProperties.Buffercreate(int capacity)Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withBufferUtils.static XrSystemGraphicsPropertiescreate(long address)Returns a newXrSystemGraphicsPropertiesinstance for the specified memory address.static XrSystemGraphicsProperties.Buffercreate(long address, int capacity)Create aXrSystemGraphicsProperties.Bufferinstance at the specified memory.static XrSystemGraphicsPropertiescreateSafe(long address)static XrSystemGraphicsProperties.BuffercreateSafe(long address, int capacity)static XrSystemGraphicsPropertiesmalloc()Returns a newXrSystemGraphicsPropertiesinstance allocated withmemAlloc.static XrSystemGraphicsProperties.Buffermalloc(int capacity)Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withmemAlloc.static XrSystemGraphicsProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemGraphicsProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemGraphicsPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemGraphicsPropertiesinstance allocated on the specifiedMemoryStack.intmaxLayerCount()the maximum number of composition layers supported by this system.XrSystemGraphicsPropertiesmaxLayerCount(int value)Sets the specified value to themaxLayerCount()field.intmaxSwapchainImageHeight()the maximum swapchain image pixel height supported by this system.XrSystemGraphicsPropertiesmaxSwapchainImageHeight(int value)Sets the specified value to themaxSwapchainImageHeight()field.intmaxSwapchainImageWidth()the maximum swapchain image pixel width supported by this system.XrSystemGraphicsPropertiesmaxSwapchainImageWidth(int value)Sets the specified value to themaxSwapchainImageWidth()field.static intnmaxLayerCount(long struct)Unsafe version ofmaxLayerCount().static voidnmaxLayerCount(long struct, int value)Unsafe version ofmaxLayerCount.static intnmaxSwapchainImageHeight(long struct)Unsafe version ofmaxSwapchainImageHeight().static voidnmaxSwapchainImageHeight(long struct, int value)Unsafe version ofmaxSwapchainImageHeight.static intnmaxSwapchainImageWidth(long struct)Unsafe version ofmaxSwapchainImageWidth().static voidnmaxSwapchainImageWidth(long struct, int value)Unsafe version ofmaxSwapchainImageWidth.XrSystemGraphicsPropertiesset(int maxSwapchainImageHeight, int maxSwapchainImageWidth, int maxLayerCount)Initializes this struct with the specified values.XrSystemGraphicsPropertiesset(XrSystemGraphicsProperties src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSystemGraphicsProperties
public XrSystemGraphicsProperties(java.nio.ByteBuffer container)
Creates aXrSystemGraphicsPropertiesinstance 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
-
maxSwapchainImageHeight
public int maxSwapchainImageHeight()
the maximum swapchain image pixel height supported by this system.
-
maxSwapchainImageWidth
public int maxSwapchainImageWidth()
the maximum swapchain image pixel width supported by this system.
-
maxLayerCount
public int maxLayerCount()
the maximum number of composition layers supported by this system. The runtime must support at leastMIN_COMPOSITION_LAYERS_SUPPORTEDlayers.
-
maxSwapchainImageHeight
public XrSystemGraphicsProperties maxSwapchainImageHeight(int value)
Sets the specified value to themaxSwapchainImageHeight()field.
-
maxSwapchainImageWidth
public XrSystemGraphicsProperties maxSwapchainImageWidth(int value)
Sets the specified value to themaxSwapchainImageWidth()field.
-
maxLayerCount
public XrSystemGraphicsProperties maxLayerCount(int value)
Sets the specified value to themaxLayerCount()field.
-
set
public XrSystemGraphicsProperties set(int maxSwapchainImageHeight, int maxSwapchainImageWidth, int maxLayerCount)
Initializes this struct with the specified values.
-
set
public XrSystemGraphicsProperties set(XrSystemGraphicsProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemGraphicsProperties malloc()
Returns a newXrSystemGraphicsPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemGraphicsProperties calloc()
Returns a newXrSystemGraphicsPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemGraphicsProperties create()
Returns a newXrSystemGraphicsPropertiesinstance allocated withBufferUtils.
-
create
public static XrSystemGraphicsProperties create(long address)
Returns a newXrSystemGraphicsPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemGraphicsProperties createSafe(long address)
-
malloc
public static XrSystemGraphicsProperties.Buffer malloc(int capacity)
Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemGraphicsProperties.Buffer calloc(int capacity)
Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemGraphicsProperties.Buffer create(int capacity)
Returns a newXrSystemGraphicsProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemGraphicsProperties.Buffer create(long address, int capacity)
Create aXrSystemGraphicsProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemGraphicsProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemGraphicsProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemGraphicsPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemGraphicsProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemGraphicsPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemGraphicsProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemGraphicsProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemGraphicsProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemGraphicsProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmaxSwapchainImageHeight
public static int nmaxSwapchainImageHeight(long struct)
Unsafe version ofmaxSwapchainImageHeight().
-
nmaxSwapchainImageWidth
public static int nmaxSwapchainImageWidth(long struct)
Unsafe version ofmaxSwapchainImageWidth().
-
nmaxLayerCount
public static int nmaxLayerCount(long struct)
Unsafe version ofmaxLayerCount().
-
nmaxSwapchainImageHeight
public static void nmaxSwapchainImageHeight(long struct, int value)Unsafe version ofmaxSwapchainImageHeight.
-
nmaxSwapchainImageWidth
public static void nmaxSwapchainImageWidth(long struct, int value)Unsafe version ofmaxSwapchainImageWidth.
-
nmaxLayerCount
public static void nmaxLayerCount(long struct, int value)Unsafe version ofmaxLayerCount.
-
-