Class XrSystemGraphicsProperties

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSystemGraphicsProperties>
org.lwjgl.openxr.XrSystemGraphicsProperties
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSystemGraphicsProperties extends org.lwjgl.system.Struct<XrSystemGraphicsProperties> implements org.lwjgl.system.NativeResource
Graphics-related properties of a particular system.
See Also

XrSystemProperties, XrSystemTrackingProperties, GetSystem, GetSystemProperties

Layout


 struct XrSystemGraphicsProperties {
     uint32_t maxSwapchainImageHeight();
     uint32_t maxSwapchainImageWidth();
     uint32_t maxLayerCount();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MAXSWAPCHAINIMAGEHEIGHT

      public static final int MAXSWAPCHAINIMAGEHEIGHT
      The struct member offsets.
    • MAXSWAPCHAINIMAGEWIDTH

      public static final int MAXSWAPCHAINIMAGEWIDTH
      The struct member offsets.
    • MAXLAYERCOUNT

      public static final int MAXLAYERCOUNT
      The struct member offsets.
  • Constructor Details

    • XrSystemGraphicsProperties

      public XrSystemGraphicsProperties(ByteBuffer container)
      Creates a XrSystemGraphicsProperties instance at the current position of the specified ByteBuffer 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrSystemGraphicsProperties>
    • 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 least MIN_COMPOSITION_LAYERS_SUPPORTED layers.
    • maxSwapchainImageHeight

      public XrSystemGraphicsProperties maxSwapchainImageHeight(int value)
      Sets the specified value to the maxSwapchainImageHeight() field.
    • maxSwapchainImageWidth

      public XrSystemGraphicsProperties maxSwapchainImageWidth(int value)
      Sets the specified value to the maxSwapchainImageWidth() field.
    • maxLayerCount

      public XrSystemGraphicsProperties maxLayerCount(int value)
      Sets the specified value to the maxLayerCount() field.
    • set

      public XrSystemGraphicsProperties set(int maxSwapchainImageHeight, int maxSwapchainImageWidth, int maxLayerCount)
      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

      public static XrSystemGraphicsProperties malloc()
      Returns a new XrSystemGraphicsProperties instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrSystemGraphicsProperties calloc()
      Returns a new XrSystemGraphicsProperties instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrSystemGraphicsProperties create()
      Returns a new XrSystemGraphicsProperties instance allocated with BufferUtils.
    • create

      public static XrSystemGraphicsProperties create(long address)
      Returns a new XrSystemGraphicsProperties instance for the specified memory address.
    • createSafe

      public static @Nullable XrSystemGraphicsProperties createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSystemGraphicsProperties.Buffer malloc(int capacity)
      Returns a new XrSystemGraphicsProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrSystemGraphicsProperties.Buffer calloc(int capacity)
      Returns a new XrSystemGraphicsProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSystemGraphicsProperties.Buffer create(int capacity)
      Returns a new XrSystemGraphicsProperties.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSystemGraphicsProperties.Buffer create(long address, int capacity)
      Create a XrSystemGraphicsProperties.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrSystemGraphicsProperties.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSystemGraphicsProperties malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemGraphicsProperties instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrSystemGraphicsProperties calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemGraphicsProperties instance allocated on the specified MemoryStack and 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 new XrSystemGraphicsProperties.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrSystemGraphicsProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSystemGraphicsProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nmaxSwapchainImageHeight

      public static int nmaxSwapchainImageHeight(long struct)
      Unsafe version of maxSwapchainImageHeight().
    • nmaxSwapchainImageWidth

      public static int nmaxSwapchainImageWidth(long struct)
      Unsafe version of maxSwapchainImageWidth().
    • nmaxLayerCount

      public static int nmaxLayerCount(long struct)
      Unsafe version of maxLayerCount().
    • nmaxSwapchainImageHeight

      public static void nmaxSwapchainImageHeight(long struct, int value)
      Unsafe version of maxSwapchainImageHeight.
    • nmaxSwapchainImageWidth

      public static void nmaxSwapchainImageWidth(long struct, int value)
      Unsafe version of maxSwapchainImageWidth.
    • nmaxLayerCount

      public static void nmaxLayerCount(long struct, int value)
      Unsafe version of maxLayerCount.