commonMain.korlibs.graphics.AGStats.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of korgw Show documentation
Show all versions of korgw Show documentation
Portable UI with accelerated graphics support for Kotlin
package korlibs.graphics
import korlibs.memory.unit.*
class AGStats(
var texturesCount: Int = 0,
var texturesMemory: ByteUnits = ByteUnits.fromBytes(0),
var buffersCount: Int = 0,
var buffersMemory: ByteUnits = ByteUnits.fromBytes(0),
var frameBuffersCount: Int = 0,
var frameBuffersMemory: ByteUnits = ByteUnits.fromBytes(0),
var texturesCreated: Int = 0,
var texturesDeleted: Int = 0,
var programCount: Int = 0,
) {
override fun toString(): String =
"AGStats(textures[$texturesCount] = $texturesMemory, buffers[$buffersCount] = $buffersMemory, frameBuffers[$frameBuffersCount] = $frameBuffersMemory, programs[$programCount])"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy