Class BGFXEncoderStats

  • All Implemented Interfaces:

    public class BGFXEncoderStats
    extends Struct
    Encoder stats.

    Member documentation

    • cpuTimeBegin – encoder thread CPU submit begin time
    • cpuTimeEnd – encoder thread CPU submit end time


     struct bgfx_encoder_stats_t {
         int64_t cpuTimeBegin;
         int64_t cpuTimeEnd;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • BGFXEncoderStats

        public BGFXEncoderStats​(java.nio.ByteBuffer container)
        Creates a BGFXEncoderStats 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
      • cpuTimeBegin

        public long cpuTimeBegin()
        Returns the value of the cpuTimeBegin field.
      • cpuTimeEnd

        public long cpuTimeEnd()
        Returns the value of the cpuTimeEnd field.
      • create

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

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

        public static BGFXEncoderStats.Buffer createSafe​(long address,
                                                         int capacity)
        Like create, but returns null if address is NULL.
      • ncpuTimeBegin

        public static long ncpuTimeBegin​(long struct)
        Unsafe version of cpuTimeBegin().
      • ncpuTimeEnd

        public static long ncpuTimeEnd​(long struct)
        Unsafe version of cpuTimeEnd().