All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.korlibs.graphics.AGStats.kt Maven / Gradle / Ivy

There is a newer version: 4.0.10
Show newest version
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