Package org.lwjgl.bgfx
Class BGFXViewStats
- All Implemented Interfaces:
Pointer
View stats.
Layout
struct bgfx_view_stats_t {
char name()
[256];
bgfx_view_id_t view()
;
int64_t cpuTimeBegin()
;
int64_t cpuTimeEnd()
;
int64_t gpuTimeBegin()
;
int64_t gpuTimeEnd()
;
uint32_t gpuFrameNum()
;
}
-
Nested Class Summary
Nested 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
Modifier 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 size in bytes.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
ConstructorDescriptionBGFXViewStats
(ByteBuffer container) Creates aBGFXViewStats
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
CPU (submit) begin timelong
CPU (submit) end timestatic BGFXViewStats
create
(long address) Returns a newBGFXViewStats
instance for the specified memory address.static BGFXViewStats.Buffer
create
(long address, int capacity) Create aBGFXViewStats.Buffer
instance at the specified memory.static BGFXViewStats
createSafe
(long address) static BGFXViewStats.Buffer
createSafe
(long address, int capacity) int
frame which generatedgpuTimeBegin
,gpuTimeEnd
long
GPU begin timelong
GPU end timename()
view nameview namestatic long
ncpuTimeBegin
(long struct) Unsafe version ofcpuTimeBegin()
.static long
ncpuTimeEnd
(long struct) Unsafe version ofcpuTimeEnd()
.static int
ngpuFrameNum
(long struct) Unsafe version ofgpuFrameNum()
.static long
ngpuTimeBegin
(long struct) Unsafe version ofgpuTimeBegin()
.static long
ngpuTimeEnd
(long struct) Unsafe version ofgpuTimeEnd()
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static short
nview
(long struct) Unsafe version ofview()
.int
sizeof()
Returnssizeof(struct)
.short
view()
view idMethods 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. -
NAME
public static final int NAMEThe struct member offsets. -
VIEW
public static final int VIEWThe struct member offsets. -
CPUTIMEBEGIN
public static final int CPUTIMEBEGINThe struct member offsets. -
CPUTIMEEND
public static final int CPUTIMEENDThe struct member offsets. -
GPUTIMEBEGIN
public static final int GPUTIMEBEGINThe struct member offsets. -
GPUTIMEEND
public static final int GPUTIMEENDThe struct member offsets. -
GPUFRAMENUM
public static final int GPUFRAMENUMThe struct member offsets.
-
-
Constructor Details
-
BGFXViewStats
Creates aBGFXViewStats
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)
.- Specified by:
sizeof
in classStruct<BGFXViewStats>
-
name
view name -
nameString
view name -
view
public short view()view id -
cpuTimeBegin
public long cpuTimeBegin()CPU (submit) begin time -
cpuTimeEnd
public long cpuTimeEnd()CPU (submit) end time -
gpuTimeBegin
public long gpuTimeBegin()GPU begin time -
gpuTimeEnd
public long gpuTimeEnd()GPU end time -
gpuFrameNum
public int gpuFrameNum()frame which generatedgpuTimeBegin
,gpuTimeEnd
-
create
Returns a newBGFXViewStats
instance for the specified memory address. -
createSafe
-
create
Create aBGFXViewStats.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
nview
public static short nview(long struct) Unsafe version ofview()
. -
ncpuTimeBegin
public static long ncpuTimeBegin(long struct) Unsafe version ofcpuTimeBegin()
. -
ncpuTimeEnd
public static long ncpuTimeEnd(long struct) Unsafe version ofcpuTimeEnd()
. -
ngpuTimeBegin
public static long ngpuTimeBegin(long struct) Unsafe version ofgpuTimeBegin()
. -
ngpuTimeEnd
public static long ngpuTimeEnd(long struct) Unsafe version ofgpuTimeEnd()
. -
ngpuFrameNum
public static int ngpuFrameNum(long struct) Unsafe version ofgpuFrameNum()
.
-