Package org.lwjgl.bgfx
Class BGFXEncoderStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXEncoderStats
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXEncoderStats extends org.lwjgl.system.StructEncoder stats.Layout
struct bgfx_encoder_stats_t { int64_tcpuTimeBegin(); int64_tcpuTimeEnd(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXEncoderStats.BufferAn array ofBGFXEncoderStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCPUTIMEBEGIN
CPUTIMEENDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description BGFXEncoderStats(java.nio.ByteBuffer container)Creates aBGFXEncoderStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcpuTimeBegin()encoder thread CPU submit begin timelongcpuTimeEnd()encoder thread CPU submit end timestatic BGFXEncoderStatscreate(long address)Returns a newBGFXEncoderStatsinstance for the specified memory address.static BGFXEncoderStats.Buffercreate(long address, int capacity)Create aBGFXEncoderStats.Bufferinstance at the specified memory.static BGFXEncoderStatscreateSafe(long address)static BGFXEncoderStats.BuffercreateSafe(long address, int capacity)static longncpuTimeBegin(long struct)Unsafe version ofcpuTimeBegin().static longncpuTimeEnd(long struct)Unsafe version ofcpuTimeEnd().intsizeof()
-
-
-
Constructor Detail
-
BGFXEncoderStats
public BGFXEncoderStats(java.nio.ByteBuffer container)
Creates aBGFXEncoderStatsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
cpuTimeBegin
public long cpuTimeBegin()
encoder thread CPU submit begin time
-
cpuTimeEnd
public long cpuTimeEnd()
encoder thread CPU submit end time
-
create
public static BGFXEncoderStats create(long address)
Returns a newBGFXEncoderStatsinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXEncoderStats createSafe(long address)
-
create
public static BGFXEncoderStats.Buffer create(long address, int capacity)
Create aBGFXEncoderStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXEncoderStats.Buffer createSafe(long address, int capacity)
-
ncpuTimeBegin
public static long ncpuTimeBegin(long struct)
Unsafe version ofcpuTimeBegin().
-
ncpuTimeEnd
public static long ncpuTimeEnd(long struct)
Unsafe version ofcpuTimeEnd().
-
-