Package org.lwjgl.bgfx
Class BGFXViewStats
- All Implemented Interfaces:
Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBGFXViewStats(ByteBuffer container) Creates aBGFXViewStatsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlonglongstatic BGFXViewStatscreate(long address) Returns a newBGFXViewStatsinstance for the specified memory address.static BGFXViewStats.Buffercreate(long address, int capacity) Create aBGFXViewStats.Bufferinstance at the specified memory.static @Nullable BGFXViewStatscreateSafe(long address) static @Nullable BGFXViewStats.BuffercreateSafe(long address, int capacity) intlonglongname()static longncpuTimeBegin(long struct) Unsafe version ofcpuTimeBegin().static longncpuTimeEnd(long struct) Unsafe version ofcpuTimeEnd().static intngpuFrameNum(long struct) Unsafe version ofgpuFrameNum().static longngpuTimeBegin(long struct) Unsafe version ofgpuTimeBegin().static longngpuTimeEnd(long struct) Unsafe version ofgpuTimeEnd().static ByteBuffernname(long struct) Unsafe version ofname().static StringnnameString(long struct) Unsafe version ofnameString().static shortnview(long struct) Unsafe version ofview().intsizeof()Returnssizeof(struct).shortview()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. -
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 aBGFXViewStatsinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<BGFXViewStats>
-
name
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
- Returns:
- the null-terminated string stored in the
namefield.
-
view
public short view()- Returns:
- the value of the
viewfield.
-
cpuTimeBegin
public long cpuTimeBegin()- Returns:
- the value of the
cpuTimeBeginfield.
-
cpuTimeEnd
public long cpuTimeEnd()- Returns:
- the value of the
cpuTimeEndfield.
-
gpuTimeBegin
public long gpuTimeBegin()- Returns:
- the value of the
gpuTimeBeginfield.
-
gpuTimeEnd
public long gpuTimeEnd()- Returns:
- the value of the
gpuTimeEndfield.
-
gpuFrameNum
public int gpuFrameNum()- Returns:
- the value of the
gpuFrameNumfield.
-
create
Returns a newBGFXViewStatsinstance for the specified memory address. -
createSafe
-
create
Create aBGFXViewStats.Bufferinstance 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().
-