public class BGFXStats
extends org.lwjgl.system.Struct
All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
cpuTimeFrame – CPU time between two frame callscpuTimeBegin – Render thread CPU submit begin timecpuTimeEnd – Render thread CPU submit end timecpuTimerFreq – CPU timer frequency. Timestamps-per-second.gpuTimeBegin – GPU frame begin timegpuTimeEnd – GPU frame end timegpuTimerFreq – GPU timer frequencywaitRender – time spent waiting for render backend thread to finish issuing draw commands to underlying graphics APIwaitSubmit – time spent waiting for submit thread to advance to next framenumDraw – number of draw calls submittednumCompute – number of compute calls submittednumBlit – number of blit calls submittedmaxGpuLatency – GPU driver latencynumDynamicIndexBuffers – number of used dynamic index buffersnumDynamicVertexBuffers – number of used dynamic vertex buffersnumFrameBuffers – number of used frame buffersnumIndexBuffers – number of used index buffersnumOcclusionQueries – number of used occlusion queriesnumPrograms – number of used programsnumShaders – number of used shadersnumTextures – number of used texturesnumUniforms – number of used uniformsnumVertexBuffers – number of used vertex buffersnumVertexLayouts – number of used vertex layoutstextureMemoryUsed – estimate of texture memory usedrtMemoryUsed – estimate of render target memory usedtransientVbUsed – amount of transient vertex buffer usedtransientIbUsed – amount of transient index buffer usednumPrims[BGFX_TOPOLOGY_COUNT] – number of primitives renderedgpuMemoryMax – maximum available GPU memory for applicationgpuMemoryUsed – amount of GPU memory used by the applicationwidth – backbuffer width in pixelsheight – backbuffer height in pixelstextWidth – debug text width in characterstextHeight – debug text height in charactersnumViews – number of view statsviewStats – array of view statsnumEncoders – number of encoders used during frameencoderStats – array of encoder stats
struct bgfx_stats_t {
int64_t cpuTimeFrame;
int64_t cpuTimeBegin;
int64_t cpuTimeEnd;
int64_t cpuTimerFreq;
int64_t gpuTimeBegin;
int64_t gpuTimeEnd;
int64_t gpuTimerFreq;
int64_t waitRender;
int64_t waitSubmit;
uint32_t numDraw;
uint32_t numCompute;
uint32_t numBlit;
uint32_t maxGpuLatency;
uint16_t numDynamicIndexBuffers;
uint16_t numDynamicVertexBuffers;
uint16_t numFrameBuffers;
uint16_t numIndexBuffers;
uint16_t numOcclusionQueries;
uint16_t numPrograms;
uint16_t numShaders;
uint16_t numTextures;
uint16_t numUniforms;
uint16_t numVertexBuffers;
uint16_t numVertexLayouts;
int64_t textureMemoryUsed;
int64_t rtMemoryUsed;
int32_t transientVbUsed;
int32_t transientIbUsed;
uint32_t numPrims[BGFX_TOPOLOGY_COUNT];
int64_t gpuMemoryMax;
int64_t gpuMemoryUsed;
uint16_t width;
uint16_t height;
uint16_t textWidth;
uint16_t textHeight;
uint16_t numViews;
bgfx_view_stats_t * viewStats;
uint16_t numEncoders;
bgfx_encoder_stats_t * encoderStats;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXStats.Buffer
An array of
BGFXStats 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 |
CPUTIMEFRAME
The struct member offsets.
|
static int |
CPUTIMERFREQ
The struct member offsets.
|
static int |
ENCODERSTATS
The struct member offsets.
|
static int |
GPUMEMORYMAX
The struct member offsets.
|
static int |
GPUMEMORYUSED
The struct member offsets.
|
static int |
GPUTIMEBEGIN
The struct member offsets.
|
static int |
GPUTIMEEND
The struct member offsets.
|
static int |
GPUTIMERFREQ
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
MAXGPULATENCY
The struct member offsets.
|
static int |
NUMBLIT
The struct member offsets.
|
static int |
NUMCOMPUTE
The struct member offsets.
|
static int |
NUMDRAW
The struct member offsets.
|
static int |
NUMDYNAMICINDEXBUFFERS
The struct member offsets.
|
static int |
NUMDYNAMICVERTEXBUFFERS
The struct member offsets.
|
static int |
NUMENCODERS
The struct member offsets.
|
static int |
NUMFRAMEBUFFERS
The struct member offsets.
|
static int |
NUMINDEXBUFFERS
The struct member offsets.
|
static int |
NUMOCCLUSIONQUERIES
The struct member offsets.
|
static int |
NUMPRIMS
The struct member offsets.
|
static int |
NUMPROGRAMS
The struct member offsets.
|
static int |
NUMSHADERS
The struct member offsets.
|
static int |
NUMTEXTURES
The struct member offsets.
|
static int |
NUMUNIFORMS
The struct member offsets.
|
static int |
NUMVERTEXBUFFERS
The struct member offsets.
|
static int |
NUMVERTEXLAYOUTS
The struct member offsets.
|
static int |
NUMVIEWS
The struct member offsets.
|
static int |
RTMEMORYUSED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTHEIGHT
The struct member offsets.
|
static int |
TEXTUREMEMORYUSED
The struct member offsets.
|
static int |
TEXTWIDTH
The struct member offsets.
|
static int |
TRANSIENTIBUSED
The struct member offsets.
|
static int |
TRANSIENTVBUSED
The struct member offsets.
|
static int |
VIEWSTATS
The struct member offsets.
|
static int |
WAITRENDER
The struct member offsets.
|
static int |
WAITSUBMIT
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXStats(java.nio.ByteBuffer container)
Creates a
BGFXStats 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. |
long |
cpuTimeFrame()
Returns the value of the
cpuTimeFrame field. |
long |
cpuTimerFreq()
Returns the value of the
cpuTimerFreq field. |
static BGFXStats |
create(long address)
Returns a new
BGFXStats instance for the specified memory address. |
static BGFXStats.Buffer |
create(long address,
int capacity)
Create a
BGFXStats.Buffer instance at the specified memory. |
static BGFXStats |
createSafe(long address)
|
static BGFXStats.Buffer |
createSafe(long address,
int capacity)
|
BGFXEncoderStats.Buffer |
encoderStats()
Returns a
BGFXEncoderStats.Buffer view of the struct array pointed to by the encoderStats field. |
long |
gpuMemoryMax()
Returns the value of the
gpuMemoryMax field. |
long |
gpuMemoryUsed()
Returns the value of the
gpuMemoryUsed field. |
long |
gpuTimeBegin()
Returns the value of the
gpuTimeBegin field. |
long |
gpuTimeEnd()
Returns the value of the
gpuTimeEnd field. |
long |
gpuTimerFreq()
Returns the value of the
gpuTimerFreq field. |
short |
height()
Returns the value of the
height field. |
int |
maxGpuLatency()
Returns the value of the
maxGpuLatency field. |
static long |
ncpuTimeBegin(long struct)
Unsafe version of
cpuTimeBegin(). |
static long |
ncpuTimeEnd(long struct)
Unsafe version of
cpuTimeEnd(). |
static long |
ncpuTimeFrame(long struct)
Unsafe version of
cpuTimeFrame(). |
static long |
ncpuTimerFreq(long struct)
Unsafe version of
cpuTimerFreq(). |
static BGFXEncoderStats.Buffer |
nencoderStats(long struct)
Unsafe version of
encoderStats(). |
static long |
ngpuMemoryMax(long struct)
Unsafe version of
gpuMemoryMax(). |
static long |
ngpuMemoryUsed(long struct)
Unsafe version of
gpuMemoryUsed(). |
static long |
ngpuTimeBegin(long struct)
Unsafe version of
gpuTimeBegin(). |
static long |
ngpuTimeEnd(long struct)
Unsafe version of
gpuTimeEnd(). |
static long |
ngpuTimerFreq(long struct)
Unsafe version of
gpuTimerFreq(). |
static short |
nheight(long struct)
Unsafe version of
height(). |
static int |
nmaxGpuLatency(long struct)
Unsafe version of
maxGpuLatency(). |
static int |
nnumBlit(long struct)
Unsafe version of
numBlit(). |
static int |
nnumCompute(long struct)
Unsafe version of
numCompute(). |
static int |
nnumDraw(long struct)
Unsafe version of
numDraw(). |
static short |
nnumDynamicIndexBuffers(long struct)
Unsafe version of
numDynamicIndexBuffers(). |
static short |
nnumDynamicVertexBuffers(long struct)
Unsafe version of
numDynamicVertexBuffers(). |
static short |
nnumEncoders(long struct)
Unsafe version of
numEncoders(). |
static short |
nnumFrameBuffers(long struct)
Unsafe version of
numFrameBuffers(). |
static short |
nnumIndexBuffers(long struct)
Unsafe version of
numIndexBuffers(). |
static short |
nnumOcclusionQueries(long struct)
Unsafe version of
numOcclusionQueries(). |
static java.nio.IntBuffer |
nnumPrims(long struct)
Unsafe version of
numPrims(). |
static int |
nnumPrims(long struct,
int index)
Unsafe version of
numPrims. |
static short |
nnumPrograms(long struct)
Unsafe version of
numPrograms(). |
static short |
nnumShaders(long struct)
Unsafe version of
numShaders(). |
static short |
nnumTextures(long struct)
Unsafe version of
numTextures(). |
static short |
nnumUniforms(long struct)
Unsafe version of
numUniforms(). |
static short |
nnumVertexBuffers(long struct)
Unsafe version of
numVertexBuffers(). |
static short |
nnumVertexLayouts(long struct)
Unsafe version of
numVertexLayouts(). |
static short |
nnumViews(long struct)
Unsafe version of
numViews(). |
static long |
nrtMemoryUsed(long struct)
Unsafe version of
rtMemoryUsed(). |
static short |
ntextHeight(long struct)
Unsafe version of
textHeight(). |
static long |
ntextureMemoryUsed(long struct)
Unsafe version of
textureMemoryUsed(). |
static short |
ntextWidth(long struct)
Unsafe version of
textWidth(). |
static int |
ntransientIbUsed(long struct)
Unsafe version of
transientIbUsed(). |
static int |
ntransientVbUsed(long struct)
Unsafe version of
transientVbUsed(). |
int |
numBlit()
Returns the value of the
numBlit field. |
int |
numCompute()
Returns the value of the
numCompute field. |
int |
numDraw()
Returns the value of the
numDraw field. |
short |
numDynamicIndexBuffers()
Returns the value of the
numDynamicIndexBuffers field. |
short |
numDynamicVertexBuffers()
Returns the value of the
numDynamicVertexBuffers field. |
short |
numEncoders()
Returns the value of the
numEncoders field. |
short |
numFrameBuffers()
Returns the value of the
numFrameBuffers field. |
short |
numIndexBuffers()
Returns the value of the
numIndexBuffers field. |
short |
numOcclusionQueries()
Returns the value of the
numOcclusionQueries field. |
java.nio.IntBuffer |
numPrims()
Returns a
IntBuffer view of the numPrims field. |
int |
numPrims(int index)
Returns the value at the specified index of the
numPrims field. |
short |
numPrograms()
Returns the value of the
numPrograms field. |
short |
numShaders()
Returns the value of the
numShaders field. |
short |
numTextures()
Returns the value of the
numTextures field. |
short |
numUniforms()
Returns the value of the
numUniforms field. |
short |
numVertexBuffers()
Returns the value of the
numVertexBuffers field. |
short |
numVertexLayouts()
Returns the value of the
numVertexLayouts field. |
short |
numViews()
Returns the value of the
numViews field. |
static BGFXViewStats.Buffer |
nviewStats(long struct)
Unsafe version of
viewStats(). |
static long |
nwaitRender(long struct)
Unsafe version of
waitRender(). |
static long |
nwaitSubmit(long struct)
Unsafe version of
waitSubmit(). |
static short |
nwidth(long struct)
Unsafe version of
width(). |
long |
rtMemoryUsed()
Returns the value of the
rtMemoryUsed field. |
int |
sizeof() |
short |
textHeight()
Returns the value of the
textHeight field. |
long |
textureMemoryUsed()
Returns the value of the
textureMemoryUsed field. |
short |
textWidth()
Returns the value of the
textWidth field. |
int |
transientIbUsed()
Returns the value of the
transientIbUsed field. |
int |
transientVbUsed()
Returns the value of the
transientVbUsed field. |
BGFXViewStats.Buffer |
viewStats()
Returns a
BGFXViewStats.Buffer view of the struct array pointed to by the viewStats field. |
long |
waitRender()
Returns the value of the
waitRender field. |
long |
waitSubmit()
Returns the value of the
waitSubmit field. |
short |
width()
Returns the value of the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CPUTIMEFRAME
public static final int CPUTIMEBEGIN
public static final int CPUTIMEEND
public static final int CPUTIMERFREQ
public static final int GPUTIMEBEGIN
public static final int GPUTIMEEND
public static final int GPUTIMERFREQ
public static final int WAITRENDER
public static final int WAITSUBMIT
public static final int NUMDRAW
public static final int NUMCOMPUTE
public static final int NUMBLIT
public static final int MAXGPULATENCY
public static final int NUMDYNAMICINDEXBUFFERS
public static final int NUMDYNAMICVERTEXBUFFERS
public static final int NUMFRAMEBUFFERS
public static final int NUMINDEXBUFFERS
public static final int NUMOCCLUSIONQUERIES
public static final int NUMPROGRAMS
public static final int NUMSHADERS
public static final int NUMTEXTURES
public static final int NUMUNIFORMS
public static final int NUMVERTEXBUFFERS
public static final int NUMVERTEXLAYOUTS
public static final int TEXTUREMEMORYUSED
public static final int RTMEMORYUSED
public static final int TRANSIENTVBUSED
public static final int TRANSIENTIBUSED
public static final int NUMPRIMS
public static final int GPUMEMORYMAX
public static final int GPUMEMORYUSED
public static final int WIDTH
public static final int HEIGHT
public static final int TEXTWIDTH
public static final int TEXTHEIGHT
public static final int NUMVIEWS
public static final int VIEWSTATS
public static final int NUMENCODERS
public static final int ENCODERSTATS
public BGFXStats(java.nio.ByteBuffer container)
BGFXStats 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 cpuTimeFrame()
cpuTimeFrame field.public long cpuTimeBegin()
cpuTimeBegin field.public long cpuTimeEnd()
cpuTimeEnd field.public long cpuTimerFreq()
cpuTimerFreq field.public long gpuTimeBegin()
gpuTimeBegin field.public long gpuTimeEnd()
gpuTimeEnd field.public long gpuTimerFreq()
gpuTimerFreq field.public long waitRender()
waitRender field.public long waitSubmit()
waitSubmit field.public int numDraw()
numDraw field.public int numCompute()
numCompute field.public int numBlit()
numBlit field.public int maxGpuLatency()
maxGpuLatency field.public short numDynamicIndexBuffers()
numDynamicIndexBuffers field.public short numDynamicVertexBuffers()
numDynamicVertexBuffers field.public short numFrameBuffers()
numFrameBuffers field.public short numIndexBuffers()
numIndexBuffers field.public short numOcclusionQueries()
numOcclusionQueries field.public short numPrograms()
numPrograms field.public short numShaders()
numShaders field.public short numTextures()
numTextures field.public short numUniforms()
numUniforms field.public short numVertexBuffers()
numVertexBuffers field.public short numVertexLayouts()
numVertexLayouts field.public long textureMemoryUsed()
textureMemoryUsed field.public long rtMemoryUsed()
rtMemoryUsed field.public int transientVbUsed()
transientVbUsed field.public int transientIbUsed()
transientIbUsed field.public java.nio.IntBuffer numPrims()
IntBuffer view of the numPrims field.public int numPrims(int index)
numPrims field.public long gpuMemoryMax()
gpuMemoryMax field.public long gpuMemoryUsed()
gpuMemoryUsed field.public short width()
width field.public short height()
height field.public short textWidth()
textWidth field.public short textHeight()
textHeight field.public short numViews()
numViews field.public BGFXViewStats.Buffer viewStats()
BGFXViewStats.Buffer view of the struct array pointed to by the viewStats field.public short numEncoders()
numEncoders field.public BGFXEncoderStats.Buffer encoderStats()
BGFXEncoderStats.Buffer view of the struct array pointed to by the encoderStats field.public static BGFXStats create(long address)
BGFXStats instance for the specified memory address.@Nullable public static BGFXStats createSafe(long address)
public static BGFXStats.Buffer create(long address, int capacity)
BGFXStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXStats.Buffer createSafe(long address, int capacity)
public static long ncpuTimeFrame(long struct)
cpuTimeFrame().public static long ncpuTimeBegin(long struct)
cpuTimeBegin().public static long ncpuTimeEnd(long struct)
cpuTimeEnd().public static long ncpuTimerFreq(long struct)
cpuTimerFreq().public static long ngpuTimeBegin(long struct)
gpuTimeBegin().public static long ngpuTimeEnd(long struct)
gpuTimeEnd().public static long ngpuTimerFreq(long struct)
gpuTimerFreq().public static long nwaitRender(long struct)
waitRender().public static long nwaitSubmit(long struct)
waitSubmit().public static int nnumDraw(long struct)
numDraw().public static int nnumCompute(long struct)
numCompute().public static int nnumBlit(long struct)
numBlit().public static int nmaxGpuLatency(long struct)
maxGpuLatency().public static short nnumDynamicIndexBuffers(long struct)
numDynamicIndexBuffers().public static short nnumDynamicVertexBuffers(long struct)
numDynamicVertexBuffers().public static short nnumFrameBuffers(long struct)
numFrameBuffers().public static short nnumIndexBuffers(long struct)
numIndexBuffers().public static short nnumOcclusionQueries(long struct)
numOcclusionQueries().public static short nnumPrograms(long struct)
numPrograms().public static short nnumShaders(long struct)
numShaders().public static short nnumTextures(long struct)
numTextures().public static short nnumUniforms(long struct)
numUniforms().public static short nnumVertexBuffers(long struct)
numVertexBuffers().public static short nnumVertexLayouts(long struct)
numVertexLayouts().public static long ntextureMemoryUsed(long struct)
textureMemoryUsed().public static long nrtMemoryUsed(long struct)
rtMemoryUsed().public static int ntransientVbUsed(long struct)
transientVbUsed().public static int ntransientIbUsed(long struct)
transientIbUsed().public static java.nio.IntBuffer nnumPrims(long struct)
numPrims().public static int nnumPrims(long struct,
int index)
numPrims.public static long ngpuMemoryMax(long struct)
gpuMemoryMax().public static long ngpuMemoryUsed(long struct)
gpuMemoryUsed().public static short nwidth(long struct)
width().public static short nheight(long struct)
height().public static short ntextWidth(long struct)
textWidth().public static short ntextHeight(long struct)
textHeight().public static short nnumViews(long struct)
numViews().public static BGFXViewStats.Buffer nviewStats(long struct)
viewStats().public static short nnumEncoders(long struct)
numEncoders().public static BGFXEncoderStats.Buffer nencoderStats(long struct)
encoderStats().Copyright LWJGL. All Rights Reserved. License terms.