Package-level declarations

Types

Link copied to clipboard

Platform host used by the Kotlin/Native Linux SkiaLayer.

Link copied to clipboard
data class LinuxSkiaLayerDiagnostics(val renderApi: GraphicsApi, val rendererDescription: String?, val deviceName: String?, val renderedFrameCount: Long, val fallbackCount: Int, val contextRecoveryCount: Int, val lastFailure: String?, val isVsyncEnabled: Boolean, val frameBuffering: FrameBuffering, val effectiveFrameBufferCount: Int?, val transparencyRequested: Boolean, val hasTransparentWindowBuffer: Boolean, val adapterPriority: GpuPriority, val gpuResourceCacheLimit: Long, val pixelGeometry: PixelGeometry, val fpsAverage: Int?, val fpsMinimum: Int?, val fpsMaximum: Int?)
Link copied to clipboard
class LinuxVulkanWindow(instanceExtensions: List<String>, surfaceFactory: NativePointer, userData: NativePointer, properties: SkiaLayerProperties = SkiaLayerProperties(), transparent: Boolean = false)

Owns a Ganesh Vulkan device and swapchain for a toolkit's Linux window.

Link copied to clipboard
Link copied to clipboard
actual open class SkiaLayer

Generic layer for Skiko rendering.

actual open class SkiaLayer

SkiaLayer implementation for macOS. Supports GraphicsApi.METAL and GraphicsApi.OPENGL.

actual open class SkiaLayer

Kotlin/Native Windows layer backed by a Win32 HWND.

Link copied to clipboard
class SkiaLayerProperties(val isVsyncEnabled: Boolean = SkikoProperties.vsyncEnabled, val isVsyncFramelimitFallbackEnabled: Boolean = SkikoProperties.vsyncFramelimitFallbackEnabled, val frameBuffering: FrameBuffering = SkikoProperties.frameBuffering, val renderApi: GraphicsApi = SkikoProperties.renderApi, val adapterPriority: GpuPriority = SkikoProperties.gpuPriority, val gpuResourceCacheLimit: Long = SkikoProperties.gpuResourceCacheLimit)

Rendering configuration for a Kotlin/Native Linux SkiaLayer.

class SkiaLayerProperties(val isVsyncEnabled: Boolean = SkikoProperties.vsyncEnabled, val isVsyncFramelimitFallbackEnabled: Boolean = SkikoProperties.vsyncFramelimitFallbackEnabled, val frameBuffering: FrameBuffering = SkikoProperties.frameBuffering, val renderApi: GraphicsApi = SkikoProperties.renderApi, val adapterPriority: GpuPriority = SkikoProperties.gpuPriority, val gpuResourceCacheLimit: Long = SkikoProperties.gpuResourceCacheLimit)

Rendering configuration for a Kotlin/Native Windows SkiaLayer.

Link copied to clipboard

Environment-backed rendering defaults for Kotlin/Native Linux.

Environment-backed rendering defaults for Kotlin/Native Windows.

Link copied to clipboard

A Win32 window accepted by SkiaLayer.attachTo.

Link copied to clipboard
data class WindowsSkiaLayerDiagnostics(val renderApi: GraphicsApi, val rendererDescription: String?, val deviceName: String?, val renderedFrameCount: Long, val fallbackCount: Int, val contextRecoveryCount: Int, val lastFailure: String?, val isVsyncEnabled: Boolean, val frameBuffering: FrameBuffering, val effectiveFrameBufferCount: Int?, val transparencyRequested: Boolean, val hasTransparentWindowBuffer: Boolean, val adapterPriority: GpuPriority, val gpuResourceCacheLimit: Long, val pixelGeometry: PixelGeometry, val fpsAverage: Int?, val fpsMinimum: Int?, val fpsMaximum: Int?)

Properties

Link copied to clipboard

Borrowed from the active Native renderer; use on its render thread and never close it.

Link copied to clipboard

Functions

Link copied to clipboard
actual fun currentNanoTime(): Long
Link copied to clipboard
actual suspend fun loadBytesFromPath(path: String): ByteArray
Link copied to clipboard

Updates Skiko's synchronous theme value from the platform host's existing theme observer.