Package org.lwjgl.bgfx
Class BGFXStats.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<BGFXStats.Buffer>
org.lwjgl.system.StructBuffer<BGFXStats,BGFXStats.Buffer>
org.lwjgl.bgfx.BGFXStats.Buffer
- Enclosing class:
BGFXStats
public static class BGFXStats.Buffer
extends org.lwjgl.system.StructBuffer<BGFXStats,BGFXStats.Buffer>
An array of
BGFXStats structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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
BGFXStats.cpuTimeFrame()field.
-
cpuTimeBegin
public long cpuTimeBegin()- Returns:
- the value of the
BGFXStats.cpuTimeBegin()field.
-
cpuTimeEnd
public long cpuTimeEnd()- Returns:
- the value of the
BGFXStats.cpuTimeEnd()field.
-
cpuTimerFreq
public long cpuTimerFreq()- Returns:
- the value of the
BGFXStats.cpuTimerFreq()field.
-
gpuTimeBegin
public long gpuTimeBegin()- Returns:
- the value of the
BGFXStats.gpuTimeBegin()field.
-
gpuTimeEnd
public long gpuTimeEnd()- Returns:
- the value of the
BGFXStats.gpuTimeEnd()field.
-
gpuTimerFreq
public long gpuTimerFreq()- Returns:
- the value of the
BGFXStats.gpuTimerFreq()field.
-
waitRender
public long waitRender()- Returns:
- the value of the
BGFXStats.waitRender()field.
-
waitSubmit
public long waitSubmit()- Returns:
- the value of the
BGFXStats.waitSubmit()field.
-
numDraw
public int numDraw()- Returns:
- the value of the
BGFXStats.numDraw()field.
-
numCompute
public int numCompute()- Returns:
- the value of the
BGFXStats.numCompute()field.
-
numBlit
public int numBlit()- Returns:
- the value of the
BGFXStats.numBlit()field.
-
maxGpuLatency
public int maxGpuLatency()- Returns:
- the value of the
BGFXStats.maxGpuLatency()field.
-
gpuFrameNum
public int gpuFrameNum()- Returns:
- the value of the
BGFXStats.gpuFrameNum()field.
-
numDynamicIndexBuffers
public short numDynamicIndexBuffers()- Returns:
- the value of the
BGFXStats.numDynamicIndexBuffers()field.
-
numDynamicVertexBuffers
public short numDynamicVertexBuffers()- Returns:
- the value of the
BGFXStats.numDynamicVertexBuffers()field.
-
numFrameBuffers
public short numFrameBuffers()- Returns:
- the value of the
BGFXStats.numFrameBuffers()field.
-
numIndexBuffers
public short numIndexBuffers()- Returns:
- the value of the
BGFXStats.numIndexBuffers()field.
-
numOcclusionQueries
public short numOcclusionQueries()- Returns:
- the value of the
BGFXStats.numOcclusionQueries()field.
-
numPrograms
public short numPrograms()- Returns:
- the value of the
BGFXStats.numPrograms()field.
-
numShaders
public short numShaders()- Returns:
- the value of the
BGFXStats.numShaders()field.
-
numTextures
public short numTextures()- Returns:
- the value of the
BGFXStats.numTextures()field.
-
numUniforms
public short numUniforms()- Returns:
- the value of the
BGFXStats.numUniforms()field.
-
numVertexBuffers
public short numVertexBuffers()- Returns:
- the value of the
BGFXStats.numVertexBuffers()field.
-
numVertexLayouts
public short numVertexLayouts()- Returns:
- the value of the
BGFXStats.numVertexLayouts()field.
-
textureMemoryUsed
public long textureMemoryUsed()- Returns:
- the value of the
BGFXStats.textureMemoryUsed()field.
-
rtMemoryUsed
public long rtMemoryUsed()- Returns:
- the value of the
BGFXStats.rtMemoryUsed()field.
-
transientVbUsed
public int transientVbUsed()- Returns:
- the value of the
BGFXStats.transientVbUsed()field.
-
transientIbUsed
public int transientIbUsed()- Returns:
- the value of the
BGFXStats.transientIbUsed()field.
-
numPrims
- Returns:
- a
IntBufferview of theBGFXStats.numPrims()field.
-
numPrims
public int numPrims(int index) - Returns:
- the value at the specified index of the
BGFXStats.numPrims()field.
-
gpuMemoryMax
public long gpuMemoryMax()- Returns:
- the value of the
BGFXStats.gpuMemoryMax()field.
-
gpuMemoryUsed
public long gpuMemoryUsed()- Returns:
- the value of the
BGFXStats.gpuMemoryUsed()field.
-
width
public short width()- Returns:
- the value of the
BGFXStats.width()field.
-
height
public short height()- Returns:
- the value of the
BGFXStats.height()field.
-
textWidth
public short textWidth()- Returns:
- the value of the
BGFXStats.textWidth()field.
-
textHeight
public short textHeight()- Returns:
- the value of the
BGFXStats.textHeight()field.
-
numViews
public short numViews()- Returns:
- the value of the
BGFXStats.numViews()field.
-
viewStats
- Returns:
- a
BGFXViewStats.Bufferview of the struct array pointed to by theBGFXStats.viewStats()field.
-
numEncoders
public short numEncoders()- Returns:
- the value of the
BGFXStats.numEncoders()field.
-
encoderStats
- Returns:
- a
BGFXEncoderStats.Bufferview of the struct array pointed to by theBGFXStats.encoderStats()field.
-