Package limn.render3d
Record Class Render3DStats
java.lang.Object
java.lang.Record
limn.render3d.Render3DStats
public record Render3DStats(int meshes, int textures, int renderTargets, long gpuBytes, int drawCalls, long triangles)
extends Record
A snapshot of the 3D subsystem's GPU footprint and last-frame workload, for
diagnostics (a performance monitor). Counts are cheap CPU-side bookkeeping.
gpuBytes covers meshes (VBO/EBO), textures, render targets and UBOs;
drawCalls/triangles are from the most recent 3D pass.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRender3DStats(int meshes, int textures, int renderTargets, long gpuBytes, int drawCalls, long triangles) Creates an instance of aRender3DStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedrawCallsrecord component.final booleanIndicates whether some other object is "equal to" this one.longgpuBytes()Returns the value of thegpuBytesrecord component.final inthashCode()Returns a hash code value for this object.intmeshes()Returns the value of themeshesrecord component.plus(Render3DStats other) intReturns the value of therenderTargetsrecord component.inttextures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetrianglesrecord component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Render3DStats
public Render3DStats(int meshes, int textures, int renderTargets, long gpuBytes, int drawCalls, long triangles) Creates an instance of aRender3DStatsrecord class.- Parameters:
meshes- the value for themeshesrecord componenttextures- the value for thetexturesrecord componentrenderTargets- the value for therenderTargetsrecord componentgpuBytes- the value for thegpuBytesrecord componentdrawCalls- the value for thedrawCallsrecord componenttriangles- the value for thetrianglesrecord component
-
-
Method Details
-
plus
- Returns:
- the component-wise sum, for aggregating across windows.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
meshes
public int meshes()Returns the value of themeshesrecord component.- Returns:
- the value of the
meshesrecord component
-
textures
public int textures()Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
renderTargets
public int renderTargets()Returns the value of therenderTargetsrecord component.- Returns:
- the value of the
renderTargetsrecord component
-
gpuBytes
public long gpuBytes()Returns the value of thegpuBytesrecord component.- Returns:
- the value of the
gpuBytesrecord component
-
drawCalls
public int drawCalls()Returns the value of thedrawCallsrecord component.- Returns:
- the value of the
drawCallsrecord component
-
triangles
public long triangles()Returns the value of thetrianglesrecord component.- Returns:
- the value of the
trianglesrecord component
-