Package org.lwjgl.bgfx
Class BGFXViewStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXViewStats
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXViewStats extends org.lwjgl.system.StructView stats.Layout
struct bgfx_view_stats_t { charname()[256]; bgfx_view_id_tview(); int64_tcpuTimeBegin(); int64_tcpuTimeEnd(); int64_tgpuTimeBegin(); int64_tgpuTimeEnd(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXViewStats.BufferAn array ofBGFXViewStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCPUTIMEBEGIN
CPUTIMEEND
GPUTIMEBEGIN
GPUTIMEEND
NAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVIEWThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXViewStats(java.nio.ByteBuffer container)Creates aBGFXViewStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcpuTimeBegin()CPU (submit) begin timelongcpuTimeEnd()CPU (submit) end timestatic 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 BGFXViewStatscreateSafe(long address)static BGFXViewStats.BuffercreateSafe(long address, int capacity)longgpuTimeBegin()GPU begin timelonggpuTimeEnd()GPU end timejava.nio.ByteBuffername()view namejava.lang.StringnameString()view namestatic longncpuTimeBegin(long struct)Unsafe version ofcpuTimeBegin().static longncpuTimeEnd(long struct)Unsafe version ofcpuTimeEnd().static longngpuTimeBegin(long struct)Unsafe version ofgpuTimeBegin().static longngpuTimeEnd(long struct)Unsafe version ofgpuTimeEnd().static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static shortnview(long struct)Unsafe version ofview().intsizeof()shortview()view id
-
-
-
Constructor Detail
-
BGFXViewStats
public BGFXViewStats(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String 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
-
create
public static BGFXViewStats create(long address)
Returns a newBGFXViewStatsinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXViewStats createSafe(long address)
-
create
public static BGFXViewStats.Buffer create(long address, int capacity)
Create aBGFXViewStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXViewStats.Buffer createSafe(long address, int capacity)
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
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().
-
-