Package org.lwjgl.bgfx
Class BGFXStats.Buffer
- Enclosing class:
BGFXStats
An array of
BGFXStats structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newBGFXStats.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglongintlonglonglonglonglongshortheight()intintnumBlit()intintnumDraw()shortshortshortshortshortshortnumPrims()intnumPrims(int index) shortshortshortshortshortshortshortnumViews()longshortlongshortintintlonglongshortwidth()Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
Creates a newBGFXStats.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
BGFXStats.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
cpuTimeFrame
public long cpuTimeFrame()- Returns:
- the value of the
cpuTimeFramefield.
-
cpuTimeBegin
public long cpuTimeBegin()- Returns:
- the value of the
cpuTimeBeginfield.
-
cpuTimeEnd
public long cpuTimeEnd()- Returns:
- the value of the
cpuTimeEndfield.
-
cpuTimerFreq
public long cpuTimerFreq()- Returns:
- the value of the
cpuTimerFreqfield.
-
gpuTimeBegin
public long gpuTimeBegin()- Returns:
- the value of the
gpuTimeBeginfield.
-
gpuTimeEnd
public long gpuTimeEnd()- Returns:
- the value of the
gpuTimeEndfield.
-
gpuTimerFreq
public long gpuTimerFreq()- Returns:
- the value of the
gpuTimerFreqfield.
-
waitRender
public long waitRender()- Returns:
- the value of the
waitRenderfield.
-
waitSubmit
public long waitSubmit()- Returns:
- the value of the
waitSubmitfield.
-
numDraw
public int numDraw()- Returns:
- the value of the
numDrawfield.
-
numCompute
public int numCompute()- Returns:
- the value of the
numComputefield.
-
numBlit
public int numBlit()- Returns:
- the value of the
numBlitfield.
-
maxGpuLatency
public int maxGpuLatency()- Returns:
- the value of the
maxGpuLatencyfield.
-
gpuFrameNum
public int gpuFrameNum()- Returns:
- the value of the
gpuFrameNumfield.
-
numDynamicIndexBuffers
public short numDynamicIndexBuffers()- Returns:
- the value of the
numDynamicIndexBuffersfield.
-
numDynamicVertexBuffers
public short numDynamicVertexBuffers()- Returns:
- the value of the
numDynamicVertexBuffersfield.
-
numFrameBuffers
public short numFrameBuffers()- Returns:
- the value of the
numFrameBuffersfield.
-
numIndexBuffers
public short numIndexBuffers()- Returns:
- the value of the
numIndexBuffersfield.
-
numOcclusionQueries
public short numOcclusionQueries()- Returns:
- the value of the
numOcclusionQueriesfield.
-
numPrograms
public short numPrograms()- Returns:
- the value of the
numProgramsfield.
-
numShaders
public short numShaders()- Returns:
- the value of the
numShadersfield.
-
numTextures
public short numTextures()- Returns:
- the value of the
numTexturesfield.
-
numUniforms
public short numUniforms()- Returns:
- the value of the
numUniformsfield.
-
numVertexBuffers
public short numVertexBuffers()- Returns:
- the value of the
numVertexBuffersfield.
-
numVertexLayouts
public short numVertexLayouts()- Returns:
- the value of the
numVertexLayoutsfield.
-
textureMemoryUsed
public long textureMemoryUsed()- Returns:
- the value of the
textureMemoryUsedfield.
-
rtMemoryUsed
public long rtMemoryUsed()- Returns:
- the value of the
rtMemoryUsedfield.
-
transientVbUsed
public int transientVbUsed()- Returns:
- the value of the
transientVbUsedfield.
-
transientIbUsed
public int transientIbUsed()- Returns:
- the value of the
transientIbUsedfield.
-
numPrims
- Returns:
- a
IntBufferview of thenumPrimsfield.
-
numPrims
public int numPrims(int index) - Returns:
- the value at the specified index of the
numPrimsfield.
-
gpuMemoryMax
public long gpuMemoryMax()- Returns:
- the value of the
gpuMemoryMaxfield.
-
gpuMemoryUsed
public long gpuMemoryUsed()- Returns:
- the value of the
gpuMemoryUsedfield.
-
width
public short width()- Returns:
- the value of the
widthfield.
-
height
public short height()- Returns:
- the value of the
heightfield.
-
textWidth
public short textWidth()- Returns:
- the value of the
textWidthfield.
-
textHeight
public short textHeight()- Returns:
- the value of the
textHeightfield.
-
numViews
public short numViews()- Returns:
- the value of the
numViewsfield.
-
viewStats
- Returns:
- a
BGFXViewStats.Bufferview of the struct array pointed to by theviewStatsfield.
-
numEncoders
public short numEncoders()- Returns:
- the value of the
numEncodersfield.
-
encoderStats
- Returns:
- a
BGFXEncoderStats.Bufferview of the struct array pointed to by theencoderStatsfield.
-