public class BGFXEncoderStats
extends org.lwjgl.system.Struct
cpuTimeBegin – encoder thread CPU submit begin timecpuTimeEnd – encoder thread CPU submit end time
struct bgfx_encoder_stats_t {
int64_t cpuTimeBegin;
int64_t cpuTimeEnd;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXEncoderStats.Buffer
An array of
BGFXEncoderStats structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CPUTIMEBEGIN
The struct member offsets.
|
static int |
CPUTIMEEND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
BGFXEncoderStats(java.nio.ByteBuffer container)
Creates a
BGFXEncoderStats instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
cpuTimeBegin()
Returns the value of the
cpuTimeBegin field. |
long |
cpuTimeEnd()
Returns the value of the
cpuTimeEnd field. |
static BGFXEncoderStats |
create(long address)
Returns a new
BGFXEncoderStats instance for the specified memory address. |
static BGFXEncoderStats.Buffer |
create(long address,
int capacity)
Create a
BGFXEncoderStats.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 of
cpuTimeBegin(). |
static long |
ncpuTimeEnd(long struct)
Unsafe version of
cpuTimeEnd(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CPUTIMEBEGIN
public static final int CPUTIMEEND
public BGFXEncoderStats(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long cpuTimeBegin()
cpuTimeBegin field.public long cpuTimeEnd()
cpuTimeEnd field.public static BGFXEncoderStats create(long address)
BGFXEncoderStats instance for the specified memory address.@Nullable public static BGFXEncoderStats createSafe(long address)
public static BGFXEncoderStats.Buffer create(long address, int capacity)
BGFXEncoderStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXEncoderStats.Buffer createSafe(long address, int capacity)
public static long ncpuTimeBegin(long struct)
cpuTimeBegin().public static long ncpuTimeEnd(long struct)
cpuTimeEnd().Copyright LWJGL. All Rights Reserved. License terms.