Class BGFXEncoderStats

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class BGFXEncoderStats
    extends org.lwjgl.system.Struct
    Encoder stats.

    Member documentation

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

    Layout

    
     struct bgfx_encoder_stats_t {
         int64_t cpuTimeBegin;
         int64_t cpuTimeEnd;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BGFXEncoderStats.Buffer
      An array of BGFXEncoderStats structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int CPUTIMEBEGIN
      CPUTIMEEND
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      BGFXEncoderStats​(java.nio.ByteBuffer container)
      Creates a BGFXEncoderStats instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CPUTIMEBEGIN, CPUTIMEEND

        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()
        Specified by:
        sizeof in class org.lwjgl.system.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

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

        @Nullable
        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().