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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
int
long
long
long
long
long
short
height()
int
int
numBlit()
int
int
numDraw()
short
short
short
short
short
short
numPrims()
int
numPrims
(int index) short
short
short
short
short
short
short
numViews()
long
short
long
short
int
int
long
long
short
width()
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
Creates a newBGFXStats.Buffer
instance 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
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.
-