public class BGFXViewStats
extends org.lwjgl.system.Struct
name[256] – view nameview – view idcpuTimeBegin – CPU (submit) begin timecpuTimeEnd – CPU (submit) end timegpuTimeBegin – GPU begin timegpuTimeEnd – GPU end time
struct bgfx_view_stats_t {
char name[256];
bgfx_view_id_t view;
int64_t cpuTimeBegin;
int64_t cpuTimeEnd;
int64_t gpuTimeBegin;
int64_t gpuTimeEnd;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXViewStats.Buffer
An array of
BGFXViewStats 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 |
GPUTIMEBEGIN
The struct member offsets.
|
static int |
GPUTIMEEND
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VIEW
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXViewStats(java.nio.ByteBuffer container)
Creates a
BGFXViewStats 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 BGFXViewStats |
create(long address)
Returns a new
BGFXViewStats instance for the specified memory address. |
static BGFXViewStats.Buffer |
create(long address,
int capacity)
Create a
BGFXViewStats.Buffer instance at the specified memory. |
static BGFXViewStats |
createSafe(long address)
|
static BGFXViewStats.Buffer |
createSafe(long address,
int capacity)
|
long |
gpuTimeBegin()
Returns the value of the
gpuTimeBegin field. |
long |
gpuTimeEnd()
Returns the value of the
gpuTimeEnd field. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the name field. |
java.lang.String |
nameString()
Decodes the null-terminated string stored in the
name field. |
static long |
ncpuTimeBegin(long struct)
Unsafe version of
cpuTimeBegin(). |
static long |
ncpuTimeEnd(long struct)
Unsafe version of
cpuTimeEnd(). |
static long |
ngpuTimeBegin(long struct)
Unsafe version of
gpuTimeBegin(). |
static long |
ngpuTimeEnd(long struct)
Unsafe version of
gpuTimeEnd(). |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static short |
nview(long struct)
Unsafe version of
view(). |
int |
sizeof() |
short |
view()
Returns the value of the
view field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int VIEW
public static final int CPUTIMEBEGIN
public static final int CPUTIMEEND
public static final int GPUTIMEBEGIN
public static final int GPUTIMEEND
public BGFXViewStats(java.nio.ByteBuffer container)
BGFXViewStats 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 java.nio.ByteBuffer name()
ByteBuffer view of the name field.public java.lang.String nameString()
name field.public short view()
view field.public long cpuTimeBegin()
cpuTimeBegin field.public long cpuTimeEnd()
cpuTimeEnd field.public long gpuTimeBegin()
gpuTimeBegin field.public long gpuTimeEnd()
gpuTimeEnd field.public static BGFXViewStats create(long address)
BGFXViewStats instance for the specified memory address.@Nullable public static BGFXViewStats createSafe(long address)
public static BGFXViewStats.Buffer create(long address, int capacity)
BGFXViewStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXViewStats.Buffer createSafe(long address, int capacity)
public static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static short nview(long struct)
view().public static long ncpuTimeBegin(long struct)
cpuTimeBegin().public static long ncpuTimeEnd(long struct)
cpuTimeEnd().public static long ngpuTimeBegin(long struct)
gpuTimeBegin().public static long ngpuTimeEnd(long struct)
gpuTimeEnd().Copyright LWJGL. All Rights Reserved. License terms.