Package org.lwjgl.bgfx
Class BGFXStats
- All Implemented Interfaces:
Pointer
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;
uint32_t gpuFrameNum;
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;
{@link BGFXViewStats bgfx_view_stats_t} * viewStats;
uint16_t numEncoders;
{@link BGFXEncoderStats bgfx_encoder_stats_t} * encoderStats;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBGFXStats
(ByteBuffer container) Creates aBGFXStats
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
static BGFXStats
create
(long address) Returns a newBGFXStats
instance for the specified memory address.static BGFXStats.Buffer
create
(long address, int capacity) Create aBGFXStats.Buffer
instance at the specified memory.static @Nullable BGFXStats
createSafe
(long address) static @Nullable BGFXStats.Buffer
createSafe
(long address, int capacity) int
long
long
long
long
long
short
height()
int
static long
ncpuTimeBegin
(long struct) Unsafe version ofcpuTimeBegin()
.static long
ncpuTimeEnd
(long struct) Unsafe version ofcpuTimeEnd()
.static long
ncpuTimeFrame
(long struct) Unsafe version ofcpuTimeFrame()
.static long
ncpuTimerFreq
(long struct) Unsafe version ofcpuTimerFreq()
.static BGFXEncoderStats.Buffer
nencoderStats
(long struct) Unsafe version ofencoderStats()
.static int
ngpuFrameNum
(long struct) Unsafe version ofgpuFrameNum()
.static long
ngpuMemoryMax
(long struct) Unsafe version ofgpuMemoryMax()
.static long
ngpuMemoryUsed
(long struct) Unsafe version ofgpuMemoryUsed()
.static long
ngpuTimeBegin
(long struct) Unsafe version ofgpuTimeBegin()
.static long
ngpuTimeEnd
(long struct) Unsafe version ofgpuTimeEnd()
.static long
ngpuTimerFreq
(long struct) Unsafe version ofgpuTimerFreq()
.static short
nheight
(long struct) Unsafe version ofheight()
.static int
nmaxGpuLatency
(long struct) Unsafe version ofmaxGpuLatency()
.static int
nnumBlit
(long struct) Unsafe version ofnumBlit()
.static int
nnumCompute
(long struct) Unsafe version ofnumCompute()
.static int
nnumDraw
(long struct) Unsafe version ofnumDraw()
.static short
nnumDynamicIndexBuffers
(long struct) Unsafe version ofnumDynamicIndexBuffers()
.static short
nnumDynamicVertexBuffers
(long struct) Unsafe version ofnumDynamicVertexBuffers()
.static short
nnumEncoders
(long struct) Unsafe version ofnumEncoders()
.static short
nnumFrameBuffers
(long struct) Unsafe version ofnumFrameBuffers()
.static short
nnumIndexBuffers
(long struct) Unsafe version ofnumIndexBuffers()
.static short
nnumOcclusionQueries
(long struct) Unsafe version ofnumOcclusionQueries()
.static IntBuffer
nnumPrims
(long struct) Unsafe version ofnumPrims()
.static int
nnumPrims
(long struct, int index) Unsafe version ofnumPrims
.static short
nnumPrograms
(long struct) Unsafe version ofnumPrograms()
.static short
nnumShaders
(long struct) Unsafe version ofnumShaders()
.static short
nnumTextures
(long struct) Unsafe version ofnumTextures()
.static short
nnumUniforms
(long struct) Unsafe version ofnumUniforms()
.static short
nnumVertexBuffers
(long struct) Unsafe version ofnumVertexBuffers()
.static short
nnumVertexLayouts
(long struct) Unsafe version ofnumVertexLayouts()
.static short
nnumViews
(long struct) Unsafe version ofnumViews()
.static long
nrtMemoryUsed
(long struct) Unsafe version ofrtMemoryUsed()
.static short
ntextHeight
(long struct) Unsafe version oftextHeight()
.static long
ntextureMemoryUsed
(long struct) Unsafe version oftextureMemoryUsed()
.static short
ntextWidth
(long struct) Unsafe version oftextWidth()
.static int
ntransientIbUsed
(long struct) Unsafe version oftransientIbUsed()
.static int
ntransientVbUsed
(long struct) Unsafe version oftransientVbUsed()
.int
numBlit()
int
int
numDraw()
short
short
short
short
short
short
numPrims()
int
numPrims
(int index) short
short
short
short
short
short
short
numViews()
static BGFXViewStats.Buffer
nviewStats
(long struct) Unsafe version ofviewStats()
.static long
nwaitRender
(long struct) Unsafe version ofwaitRender()
.static long
nwaitSubmit
(long struct) Unsafe version ofwaitSubmit()
.static short
nwidth
(long struct) Unsafe version ofwidth()
.long
int
sizeof()
Returnssizeof(struct)
.short
long
short
int
int
long
long
short
width()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CPUTIMEFRAME
public static final int CPUTIMEFRAMEThe struct member offsets. -
CPUTIMEBEGIN
public static final int CPUTIMEBEGINThe struct member offsets. -
CPUTIMEEND
public static final int CPUTIMEENDThe struct member offsets. -
CPUTIMERFREQ
public static final int CPUTIMERFREQThe struct member offsets. -
GPUTIMEBEGIN
public static final int GPUTIMEBEGINThe struct member offsets. -
GPUTIMEEND
public static final int GPUTIMEENDThe struct member offsets. -
GPUTIMERFREQ
public static final int GPUTIMERFREQThe struct member offsets. -
WAITRENDER
public static final int WAITRENDERThe struct member offsets. -
WAITSUBMIT
public static final int WAITSUBMITThe struct member offsets. -
NUMDRAW
public static final int NUMDRAWThe struct member offsets. -
NUMCOMPUTE
public static final int NUMCOMPUTEThe struct member offsets. -
NUMBLIT
public static final int NUMBLITThe struct member offsets. -
MAXGPULATENCY
public static final int MAXGPULATENCYThe struct member offsets. -
GPUFRAMENUM
public static final int GPUFRAMENUMThe struct member offsets. -
NUMDYNAMICINDEXBUFFERS
public static final int NUMDYNAMICINDEXBUFFERSThe struct member offsets. -
NUMDYNAMICVERTEXBUFFERS
public static final int NUMDYNAMICVERTEXBUFFERSThe struct member offsets. -
NUMFRAMEBUFFERS
public static final int NUMFRAMEBUFFERSThe struct member offsets. -
NUMINDEXBUFFERS
public static final int NUMINDEXBUFFERSThe struct member offsets. -
NUMOCCLUSIONQUERIES
public static final int NUMOCCLUSIONQUERIESThe struct member offsets. -
NUMPROGRAMS
public static final int NUMPROGRAMSThe struct member offsets. -
NUMSHADERS
public static final int NUMSHADERSThe struct member offsets. -
NUMTEXTURES
public static final int NUMTEXTURESThe struct member offsets. -
NUMUNIFORMS
public static final int NUMUNIFORMSThe struct member offsets. -
NUMVERTEXBUFFERS
public static final int NUMVERTEXBUFFERSThe struct member offsets. -
NUMVERTEXLAYOUTS
public static final int NUMVERTEXLAYOUTSThe struct member offsets. -
TEXTUREMEMORYUSED
public static final int TEXTUREMEMORYUSEDThe struct member offsets. -
RTMEMORYUSED
public static final int RTMEMORYUSEDThe struct member offsets. -
TRANSIENTVBUSED
public static final int TRANSIENTVBUSEDThe struct member offsets. -
TRANSIENTIBUSED
public static final int TRANSIENTIBUSEDThe struct member offsets. -
NUMPRIMS
public static final int NUMPRIMSThe struct member offsets. -
GPUMEMORYMAX
public static final int GPUMEMORYMAXThe struct member offsets. -
GPUMEMORYUSED
public static final int GPUMEMORYUSEDThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
TEXTWIDTH
public static final int TEXTWIDTHThe struct member offsets. -
TEXTHEIGHT
public static final int TEXTHEIGHTThe struct member offsets. -
NUMVIEWS
public static final int NUMVIEWSThe struct member offsets. -
VIEWSTATS
public static final int VIEWSTATSThe struct member offsets. -
NUMENCODERS
public static final int NUMENCODERSThe struct member offsets. -
ENCODERSTATS
public static final int ENCODERSTATSThe struct member offsets.
-
-
Constructor Details
-
BGFXStats
Creates aBGFXStats
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
cpuTimeFrame
public long cpuTimeFrame()- Returns:
- the value of the
cpuTimeFrame
field.
-
cpuTimeBegin
public long cpuTimeBegin()- Returns:
- the value of the
cpuTimeBegin
field.
-
cpuTimeEnd
public long cpuTimeEnd()- Returns:
- the value of the
cpuTimeEnd
field.
-
cpuTimerFreq
public long cpuTimerFreq()- Returns:
- the value of the
cpuTimerFreq
field.
-
gpuTimeBegin
public long gpuTimeBegin()- Returns:
- the value of the
gpuTimeBegin
field.
-
gpuTimeEnd
public long gpuTimeEnd()- Returns:
- the value of the
gpuTimeEnd
field.
-
gpuTimerFreq
public long gpuTimerFreq()- Returns:
- the value of the
gpuTimerFreq
field.
-
waitRender
public long waitRender()- Returns:
- the value of the
waitRender
field.
-
waitSubmit
public long waitSubmit()- Returns:
- the value of the
waitSubmit
field.
-
numDraw
public int numDraw()- Returns:
- the value of the
numDraw
field.
-
numCompute
public int numCompute()- Returns:
- the value of the
numCompute
field.
-
numBlit
public int numBlit()- Returns:
- the value of the
numBlit
field.
-
maxGpuLatency
public int maxGpuLatency()- Returns:
- the value of the
maxGpuLatency
field.
-
gpuFrameNum
public int gpuFrameNum()- Returns:
- the value of the
gpuFrameNum
field.
-
numDynamicIndexBuffers
public short numDynamicIndexBuffers()- Returns:
- the value of the
numDynamicIndexBuffers
field.
-
numDynamicVertexBuffers
public short numDynamicVertexBuffers()- Returns:
- the value of the
numDynamicVertexBuffers
field.
-
numFrameBuffers
public short numFrameBuffers()- Returns:
- the value of the
numFrameBuffers
field.
-
numIndexBuffers
public short numIndexBuffers()- Returns:
- the value of the
numIndexBuffers
field.
-
numOcclusionQueries
public short numOcclusionQueries()- Returns:
- the value of the
numOcclusionQueries
field.
-
numPrograms
public short numPrograms()- Returns:
- the value of the
numPrograms
field.
-
numShaders
public short numShaders()- Returns:
- the value of the
numShaders
field.
-
numTextures
public short numTextures()- Returns:
- the value of the
numTextures
field.
-
numUniforms
public short numUniforms()- Returns:
- the value of the
numUniforms
field.
-
numVertexBuffers
public short numVertexBuffers()- Returns:
- the value of the
numVertexBuffers
field.
-
numVertexLayouts
public short numVertexLayouts()- Returns:
- the value of the
numVertexLayouts
field.
-
textureMemoryUsed
public long textureMemoryUsed()- Returns:
- the value of the
textureMemoryUsed
field.
-
rtMemoryUsed
public long rtMemoryUsed()- Returns:
- the value of the
rtMemoryUsed
field.
-
transientVbUsed
public int transientVbUsed()- Returns:
- the value of the
transientVbUsed
field.
-
transientIbUsed
public int transientIbUsed()- Returns:
- the value of the
transientIbUsed
field.
-
numPrims
- Returns:
- a
IntBuffer
view of thenumPrims
field.
-
numPrims
public int numPrims(int index) - Returns:
- the value at the specified index of the
numPrims
field.
-
gpuMemoryMax
public long gpuMemoryMax()- Returns:
- the value of the
gpuMemoryMax
field.
-
gpuMemoryUsed
public long gpuMemoryUsed()- Returns:
- the value of the
gpuMemoryUsed
field.
-
width
public short width()- Returns:
- the value of the
width
field.
-
height
public short height()- Returns:
- the value of the
height
field.
-
textWidth
public short textWidth()- Returns:
- the value of the
textWidth
field.
-
textHeight
public short textHeight()- Returns:
- the value of the
textHeight
field.
-
numViews
public short numViews()- Returns:
- the value of the
numViews
field.
-
viewStats
- Returns:
- a
BGFXViewStats.Buffer
view of the struct array pointed to by theviewStats
field.
-
numEncoders
public short numEncoders()- Returns:
- the value of the
numEncoders
field.
-
encoderStats
- Returns:
- a
BGFXEncoderStats.Buffer
view of the struct array pointed to by theencoderStats
field.
-
create
Returns a newBGFXStats
instance for the specified memory address. -
createSafe
-
create
Create aBGFXStats.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ncpuTimeFrame
public static long ncpuTimeFrame(long struct) Unsafe version ofcpuTimeFrame()
. -
ncpuTimeBegin
public static long ncpuTimeBegin(long struct) Unsafe version ofcpuTimeBegin()
. -
ncpuTimeEnd
public static long ncpuTimeEnd(long struct) Unsafe version ofcpuTimeEnd()
. -
ncpuTimerFreq
public static long ncpuTimerFreq(long struct) Unsafe version ofcpuTimerFreq()
. -
ngpuTimeBegin
public static long ngpuTimeBegin(long struct) Unsafe version ofgpuTimeBegin()
. -
ngpuTimeEnd
public static long ngpuTimeEnd(long struct) Unsafe version ofgpuTimeEnd()
. -
ngpuTimerFreq
public static long ngpuTimerFreq(long struct) Unsafe version ofgpuTimerFreq()
. -
nwaitRender
public static long nwaitRender(long struct) Unsafe version ofwaitRender()
. -
nwaitSubmit
public static long nwaitSubmit(long struct) Unsafe version ofwaitSubmit()
. -
nnumDraw
public static int nnumDraw(long struct) Unsafe version ofnumDraw()
. -
nnumCompute
public static int nnumCompute(long struct) Unsafe version ofnumCompute()
. -
nnumBlit
public static int nnumBlit(long struct) Unsafe version ofnumBlit()
. -
nmaxGpuLatency
public static int nmaxGpuLatency(long struct) Unsafe version ofmaxGpuLatency()
. -
ngpuFrameNum
public static int ngpuFrameNum(long struct) Unsafe version ofgpuFrameNum()
. -
nnumDynamicIndexBuffers
public static short nnumDynamicIndexBuffers(long struct) Unsafe version ofnumDynamicIndexBuffers()
. -
nnumDynamicVertexBuffers
public static short nnumDynamicVertexBuffers(long struct) Unsafe version ofnumDynamicVertexBuffers()
. -
nnumFrameBuffers
public static short nnumFrameBuffers(long struct) Unsafe version ofnumFrameBuffers()
. -
nnumIndexBuffers
public static short nnumIndexBuffers(long struct) Unsafe version ofnumIndexBuffers()
. -
nnumOcclusionQueries
public static short nnumOcclusionQueries(long struct) Unsafe version ofnumOcclusionQueries()
. -
nnumPrograms
public static short nnumPrograms(long struct) Unsafe version ofnumPrograms()
. -
nnumShaders
public static short nnumShaders(long struct) Unsafe version ofnumShaders()
. -
nnumTextures
public static short nnumTextures(long struct) Unsafe version ofnumTextures()
. -
nnumUniforms
public static short nnumUniforms(long struct) Unsafe version ofnumUniforms()
. -
nnumVertexBuffers
public static short nnumVertexBuffers(long struct) Unsafe version ofnumVertexBuffers()
. -
nnumVertexLayouts
public static short nnumVertexLayouts(long struct) Unsafe version ofnumVertexLayouts()
. -
ntextureMemoryUsed
public static long ntextureMemoryUsed(long struct) Unsafe version oftextureMemoryUsed()
. -
nrtMemoryUsed
public static long nrtMemoryUsed(long struct) Unsafe version ofrtMemoryUsed()
. -
ntransientVbUsed
public static int ntransientVbUsed(long struct) Unsafe version oftransientVbUsed()
. -
ntransientIbUsed
public static int ntransientIbUsed(long struct) Unsafe version oftransientIbUsed()
. -
nnumPrims
Unsafe version ofnumPrims()
. -
nnumPrims
public static int nnumPrims(long struct, int index) Unsafe version ofnumPrims
. -
ngpuMemoryMax
public static long ngpuMemoryMax(long struct) Unsafe version ofgpuMemoryMax()
. -
ngpuMemoryUsed
public static long ngpuMemoryUsed(long struct) Unsafe version ofgpuMemoryUsed()
. -
nwidth
public static short nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static short nheight(long struct) Unsafe version ofheight()
. -
ntextWidth
public static short ntextWidth(long struct) Unsafe version oftextWidth()
. -
ntextHeight
public static short ntextHeight(long struct) Unsafe version oftextHeight()
. -
nnumViews
public static short nnumViews(long struct) Unsafe version ofnumViews()
. -
nviewStats
Unsafe version ofviewStats()
. -
nnumEncoders
public static short nnumEncoders(long struct) Unsafe version ofnumEncoders()
. -
nencoderStats
Unsafe version ofencoderStats()
.
-