commonMain.ru.casperix.opengl.renderer.OpenGlRendererStatistic.kt Maven / Gradle / Ivy
package ru.casperix.opengl.renderer
class FrameStatistic(
var frameIndex:Long,
var triangles:Int = 0,
var batches:Int = 0,
var states:Int = 0,
var static:Int = 0,
var dynamicBufferAmount:Int = 0,
var staticBufferAmount:Int = 0,
)
class OpenGlRendererStatistic {
var frameIndex = 0L
var current = FrameStatistic(frameIndex)
var last = FrameStatistic(frameIndex)
fun nextFrame() {
last = current
current = FrameStatistic(++frameIndex)
}
}