Class BGFXCaps

All Implemented Interfaces:
Pointer

public class BGFXCaps extends Struct<BGFXCaps>

 struct bgfx_caps_t {
     bgfx_renderer_type_t rendererType;
     uint64_t supported;
     uint16_t vendorId;
     uint16_t deviceId;
     bool homogeneousDepth;
     bool originBottomLeft;
     uint8_t numGPUs;
     {@link BGFXCapsGPU bgfx_caps_gpu_t} gpu[4];
     {@link BGFXCapsLimits bgfx_caps_limits_t} limits;
     uint16_t formats[BGFX_TEXTURE_FORMAT_COUNT];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int RENDERERTYPE
      The struct member offsets.
    • SUPPORTED

      public static final int SUPPORTED
      The struct member offsets.
    • VENDORID

      public static final int VENDORID
      The struct member offsets.
    • DEVICEID

      public static final int DEVICEID
      The struct member offsets.
    • HOMOGENEOUSDEPTH

      public static final int HOMOGENEOUSDEPTH
      The struct member offsets.
    • ORIGINBOTTOMLEFT

      public static final int ORIGINBOTTOMLEFT
      The struct member offsets.
    • NUMGPUS

      public static final int NUMGPUS
      The struct member offsets.
    • GPU

      public static final int GPU
      The struct member offsets.
    • LIMITS

      public static final int LIMITS
      The struct member offsets.
    • FORMATS

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

    • BGFXCaps

      public BGFXCaps(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<BGFXCaps>
    • 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.Buffer gpu()
      Returns:
      a BGFXCapsGPU.Buffer view of the gpu field.
    • gpu

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

      public BGFXCapsLimits limits()
      Returns:
      a BGFXCapsLimits view of the limits field.
    • formats

      public 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 @Nullable 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.Buffer ngpu(long struct)
      Unsafe version of gpu().
    • ngpu

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

      public static BGFXCapsLimits nlimits(long struct)
      Unsafe version of limits().
    • nformats

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

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