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.Struct
View stats.Member documentation
name[256]
– view nameview
– view idcpuTimeElapsed
– CPU (submit) time elapsedgpuTimeElapsed
– GPU time elapsed
Layout
struct bgfx_view_stats_t { char name[256]; bgfx_view_id_t view; int64_t cpuTimeElapsed; int64_t gpuTimeElapsed; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BGFXViewStats.Buffer
An array ofBGFXViewStats
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CPUTIMEELAPSED
GPUTIMEELAPSED
NAMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VIEW
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXViewStats(java.nio.ByteBuffer container)
Creates aBGFXViewStats
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
cpuTimeElapsed()
Returns the value of thecpuTimeElapsed
field.static 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)
long
gpuTimeElapsed()
Returns the value of thegpuTimeElapsed
field.java.nio.ByteBuffer
name()
Returns aByteBuffer
view of thename
field.java.lang.String
nameString()
Decodes the null-terminated string stored in thename
field.static long
ncpuTimeElapsed(long struct)
Unsafe version ofcpuTimeElapsed()
.static long
ngpuTimeElapsed(long struct)
Unsafe version ofgpuTimeElapsed()
.static java.nio.ByteBuffer
nname(long struct)
Unsafe version ofname()
.static java.lang.String
nnameString(long struct)
Unsafe version ofnameString()
.static short
nview(long struct)
Unsafe version ofview()
.int
sizeof()
short
view()
Returns the value of theview
field.
-
-
-
Constructor Detail
-
BGFXViewStats
public BGFXViewStats(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
name
public java.nio.ByteBuffer name()
Returns aByteBuffer
view of thename
field.
-
nameString
public java.lang.String nameString()
Decodes the null-terminated string stored in thename
field.
-
view
public short view()
Returns the value of theview
field.
-
cpuTimeElapsed
public long cpuTimeElapsed()
Returns the value of thecpuTimeElapsed
field.
-
gpuTimeElapsed
public long gpuTimeElapsed()
Returns the value of thegpuTimeElapsed
field.
-
create
public static BGFXViewStats create(long address)
Returns a newBGFXViewStats
instance 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.Buffer
instance 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()
.
-
ncpuTimeElapsed
public static long ncpuTimeElapsed(long struct)
Unsafe version ofcpuTimeElapsed()
.
-
ngpuTimeElapsed
public static long ngpuTimeElapsed(long struct)
Unsafe version ofgpuTimeElapsed()
.
-
-