Class BGFXCaps

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • BGFXCaps

        public BGFXCaps​(java.nio.ByteBuffer container)
        Creates a BGFXCaps 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • rendererType

        public int rendererType()
        Returns the value of the rendererType field.
      • supported

        public long supported()
        Returns the value of the supported field.
      • vendorId

        public short vendorId()
        Returns the value of the vendorId field.
      • deviceId

        public short deviceId()
        Returns the value of the deviceId field.
      • homogeneousDepth

        public boolean homogeneousDepth()
        Returns the value of the homogeneousDepth field.
      • originBottomLeft

        public boolean originBottomLeft()
        Returns the value of the originBottomLeft field.
      • numGPUs

        public byte numGPUs()
        Returns the value of the numGPUs field.
      • gpu

        public BGFXCapsGPU gpu​(int index)
        Returns a BGFXCapsGPU view of the struct at the specified index of the gpu field.
      • formats

        public java.nio.ShortBuffer formats()
        Returns a ShortBuffer view of the formats field.
      • formats

        public short formats​(int index)
        Returns the value at the specified index of the formats field.
      • create

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

        public static BGFXCaps createSafe​(long address)
        Like create, but returns null if address is NULL.
      • nrendererType

        public static int nrendererType​(long struct)
        Unsafe version of rendererType().
      • nsupported

        public static long nsupported​(long struct)
        Unsafe version of supported().
      • nvendorId

        public static short nvendorId​(long struct)
        Unsafe version of vendorId().
      • ndeviceId

        public static short ndeviceId​(long struct)
        Unsafe version of deviceId().
      • nhomogeneousDepth

        public static boolean nhomogeneousDepth​(long struct)
        Unsafe version of homogeneousDepth().
      • noriginBottomLeft

        public static boolean noriginBottomLeft​(long struct)
        Unsafe version of originBottomLeft().
      • nnumGPUs

        public static byte nnumGPUs​(long struct)
        Unsafe version of numGPUs().
      • ngpu

        public static BGFXCapsGPU ngpu​(long struct,
                                       int index)
        Unsafe version of gpu.
      • nformats

        public static java.nio.ShortBuffer nformats​(long struct)
        Unsafe version of formats().
      • nformats

        public static short nformats​(long struct,
                                     int index)
        Unsafe version of formats.