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.Struct
Encoder stats.Member documentation
cpuTimeBegin
– encoder thread CPU submit begin timecpuTimeEnd
– 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 ofBGFXEncoderStats
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CPUTIMEBEGIN
CPUTIMEENDThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description BGFXEncoderStats(java.nio.ByteBuffer container)
Creates aBGFXEncoderStats
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
cpuTimeBegin()
Returns the value of thecpuTimeBegin
field.long
cpuTimeEnd()
Returns the value of thecpuTimeEnd
field.static BGFXEncoderStats
create(long address)
Returns a newBGFXEncoderStats
instance for the specified memory address.static BGFXEncoderStats.Buffer
create(long address, int capacity)
Create aBGFXEncoderStats.Buffer
instance at the specified memory.static BGFXEncoderStats
createSafe(long address)
static BGFXEncoderStats.Buffer
createSafe(long address, int capacity)
static long
ncpuTimeBegin(long struct)
Unsafe version ofcpuTimeBegin()
.static long
ncpuTimeEnd(long struct)
Unsafe version ofcpuTimeEnd()
.int
sizeof()
-
-
-
Constructor Detail
-
BGFXEncoderStats
public BGFXEncoderStats(java.nio.ByteBuffer container)
Creates aBGFXEncoderStats
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
cpuTimeBegin
public long cpuTimeBegin()
Returns the value of thecpuTimeBegin
field.
-
cpuTimeEnd
public long cpuTimeEnd()
Returns the value of thecpuTimeEnd
field.
-
create
public static BGFXEncoderStats create(long address)
Returns a newBGFXEncoderStats
instance 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.Buffer
instance 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()
.
-
-