Driver

expect interface Driver

Driver interface. This is the internal interface

actual interface Driver

Driver interface. This is the internal interface

actual interface Driver

Driver interface. This is the internal interface

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect abstract fun clear(    r: Double,     g: Double,     b: Double,     a: Double)
actual abstract fun clear(    r: Double,     g: Double,     b: Double,     a: Double)
actual abstract fun clear(    r: Double,     g: Double,     b: Double,     a: Double)
Link copied to clipboard
expect abstract fun createArrayCubemap(    width: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int = 1,     session: Session? = Session.active): ArrayCubemap
actual abstract fun createArrayCubemap(    width: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayCubemap
actual abstract fun createArrayCubemap(    width: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayCubemap
Link copied to clipboard
expect abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int = 1,     session: Session? = Session.active): ArrayTexture
actual abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayTexture
actual abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayTexture
Link copied to clipboard
expect abstract fun createAtomicCounterBuffer(counterCount: Int, session: Session? = Session.active): AtomicCounterBuffer
actual abstract fun createAtomicCounterBuffer(counterCount: Int, session: Session?): AtomicCounterBuffer
actual abstract fun createAtomicCounterBuffer(counterCount: Int, session: Session?): AtomicCounterBuffer
Link copied to clipboard
expect abstract fun createBufferTexture(    elementCount: Int,     format: ColorFormat,     type: ColorType,     session: Session? = Session.active): BufferTexture
actual abstract fun createBufferTexture(    elementCount: Int,     format: ColorFormat,     type: ColorType,     session: Session?): BufferTexture
actual abstract fun createBufferTexture(    elementCount: Int,     format: ColorFormat,     type: ColorType,     session: Session?): BufferTexture
Link copied to clipboard
expect abstract fun createColorBuffer(    width: Int,     height: Int,     contentScale: Double,     format: ColorFormat,     type: ColorType,     multisample: BufferMultisample = BufferMultisample.Disabled,     levels: Int = 1,     session: Session? = Session.active): ColorBuffer
actual abstract fun createColorBuffer(    width: Int,     height: Int,     contentScale: Double,     format: ColorFormat,     type: ColorType,     multisample: BufferMultisample,     levels: Int,     session: Session?): ColorBuffer
actual abstract fun createColorBuffer(    width: Int,     height: Int,     contentScale: Double,     format: ColorFormat,     type: ColorType,     multisample: BufferMultisample,     levels: Int,     session: Session?): ColorBuffer
Link copied to clipboard
expect abstract fun createColorBufferFromArray(    array: ByteArray,     offset: Int = 0,     length: Int = 0,     name: String? = null,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
actual abstract fun createColorBufferFromArray(    array: ByteArray,     offset: Int,     length: Int,     name: String?,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
actual abstract fun createColorBufferFromArray(    array: ByteArray,     offset: Int,     length: Int,     name: String?,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
Link copied to clipboard
abstract fun createColorBufferFromBuffer(    buffer: ByteBuffer,     name: String? = null,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
Link copied to clipboard
expect abstract fun createColorBufferFromFile(    filename: String,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
actual abstract fun createColorBufferFromFile(    filename: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
actual abstract fun createColorBufferFromFile(    filename: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
Link copied to clipboard
abstract fun createColorBufferFromStream(    stream: InputStream,     name: String? = null,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
Link copied to clipboard
expect abstract fun createColorBufferFromUrl(    url: String,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
actual abstract fun createColorBufferFromUrl(    url: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
actual abstract fun createColorBufferFromUrl(    url: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
Link copied to clipboard
expect abstract suspend fun createColorBufferFromUrlSuspend(    url: String,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): ColorBuffer
actual abstract suspend fun createColorBufferFromUrlSuspend(    url: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
actual abstract suspend fun createColorBufferFromUrlSuspend(    url: String,     formatHint: ImageFileFormat?,     session: Session?): ColorBuffer
Link copied to clipboard
expect abstract fun createComputeShader(    code: String,     name: String,     session: Session? = Session.active): ComputeShader
actual abstract fun createComputeShader(    code: String,     name: String,     session: Session?): ComputeShader
actual abstract fun createComputeShader(    code: String,     name: String,     session: Session?): ComputeShader
Link copied to clipboard
expect abstract fun createCubemap(    width: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session? = Session.active): Cubemap
actual abstract fun createCubemap(    width: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): Cubemap
actual abstract fun createCubemap(    width: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): Cubemap
Link copied to clipboard
expect abstract fun createCubemapFromFiles(    filenames: List<String>,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): Cubemap
actual abstract fun createCubemapFromFiles(    filenames: List<String>,     formatHint: ImageFileFormat?,     session: Session?): Cubemap
actual abstract fun createCubemapFromFiles(    filenames: List<String>,     formatHint: ImageFileFormat?,     session: Session?): Cubemap
Link copied to clipboard
expect abstract fun createCubemapFromUrls(    urls: List<String>,     formatHint: ImageFileFormat? = null,     session: Session? = Session.active): Cubemap
actual abstract fun createCubemapFromUrls(    urls: List<String>,     formatHint: ImageFileFormat?,     session: Session?): Cubemap
actual abstract fun createCubemapFromUrls(    urls: List<String>,     formatHint: ImageFileFormat?,     session: Session?): Cubemap
Link copied to clipboard
expect abstract fun createDepthBuffer(    width: Int,     height: Int,     format: DepthFormat,     multisample: BufferMultisample = BufferMultisample.Disabled,     session: Session? = Session.active): DepthBuffer
actual abstract fun createDepthBuffer(    width: Int,     height: Int,     format: DepthFormat,     multisample: BufferMultisample,     session: Session?): DepthBuffer
actual abstract fun createDepthBuffer(    width: Int,     height: Int,     format: DepthFormat,     multisample: BufferMultisample,     session: Session?): DepthBuffer
Link copied to clipboard
abstract fun createDrawThread(session: Session? = Session.active): DrawThread
Link copied to clipboard
expect abstract fun createDynamicIndexBuffer(    elementCount: Int,     type: IndexType,     session: Session? = Session.active): IndexBuffer
actual abstract fun createDynamicIndexBuffer(    elementCount: Int,     type: IndexType,     session: Session?): IndexBuffer
actual abstract fun createDynamicIndexBuffer(    elementCount: Int,     type: IndexType,     session: Session?): IndexBuffer
Link copied to clipboard
expect abstract fun createDynamicVertexBuffer(    format: VertexFormat,     vertexCount: Int,     session: Session? = Session.active): VertexBuffer
actual abstract fun createDynamicVertexBuffer(    format: VertexFormat,     vertexCount: Int,     session: Session?): VertexBuffer
actual abstract fun createDynamicVertexBuffer(    format: VertexFormat,     vertexCount: Int,     session: Session?): VertexBuffer
Link copied to clipboard
expect abstract fun createRenderTarget(    width: Int,     height: Int,     contentScale: Double = 1.0,     multisample: BufferMultisample = BufferMultisample.Disabled,     session: Session? = Session.active): RenderTarget
actual abstract fun createRenderTarget(    width: Int,     height: Int,     contentScale: Double,     multisample: BufferMultisample,     session: Session?): RenderTarget
actual abstract fun createRenderTarget(    width: Int,     height: Int,     contentScale: Double,     multisample: BufferMultisample,     session: Session?): RenderTarget
Link copied to clipboard
abstract fun createResourceThread(session: Session? = Session.active, f: () -> Unit): ResourceThread
Link copied to clipboard
expect abstract fun createShader(    vsCode: String,     tcsCode: String?,     tesCode: String?,     gsCode: String?,     fsCode: String,     name: String,     session: Session? = Session.active): Shader

Create a shader from code

actual abstract fun createShader(    vsCode: String,     tcsCode: String?,     tesCode: String?,     gsCode: String?,     fsCode: String,     name: String,     session: Session?): Shader

Create a shader from code

actual abstract fun createShader(    vsCode: String,     tcsCode: String?,     tesCode: String?,     gsCode: String?,     fsCode: String,     name: String,     session: Session?): Shader

Create a shader from code

Link copied to clipboard
expect abstract fun createShaderStorageBuffer(format: ShaderStorageFormat, session: Session? = Session.active): ShaderStorageBuffer
actual abstract fun createShaderStorageBuffer(format: ShaderStorageFormat, session: Session?): ShaderStorageBuffer
actual abstract fun createShaderStorageBuffer(format: ShaderStorageFormat, session: Session?): ShaderStorageBuffer
Link copied to clipboard
expect abstract fun createShadeStyleManager(    name: String,     vsGenerator: (ShadeStructure) -> String,     tcsGenerator: (ShadeStructure) -> String? = null,     tesGenerator: (ShadeStructure) -> String? = null,     gsGenerator: (ShadeStructure) -> String? = null,     fsGenerator: (ShadeStructure) -> String,     session: Session? = Session.root): ShadeStyleManager
actual abstract fun createShadeStyleManager(    name: String,     vsGenerator: (ShadeStructure) -> String,     tcsGenerator: (ShadeStructure) -> String?,     tesGenerator: (ShadeStructure) -> String?,     gsGenerator: (ShadeStructure) -> String?,     fsGenerator: (ShadeStructure) -> String,     session: Session?): ShadeStyleManager
actual abstract fun createShadeStyleManager(    name: String,     vsGenerator: (ShadeStructure) -> String,     tcsGenerator: (ShadeStructure) -> String?,     tesGenerator: (ShadeStructure) -> String?,     gsGenerator: (ShadeStructure) -> String?,     fsGenerator: (ShadeStructure) -> String,     session: Session?): ShadeStyleManager
Link copied to clipboard
abstract fun createStaticVertexBuffer(    format: VertexFormat,     buffer: Buffer,     session: Session? = Session.active): VertexBuffer
Link copied to clipboard
expect abstract fun createVolumeTexture(    width: Int,     height: Int,     depth: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session? = Session.active): VolumeTexture
actual abstract fun createVolumeTexture(    width: Int,     height: Int,     depth: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): VolumeTexture
actual abstract fun createVolumeTexture(    width: Int,     height: Int,     depth: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): VolumeTexture
Link copied to clipboard
expect abstract fun destroyContext(context: Long)
actual abstract fun destroyContext(context: Long)
actual abstract fun destroyContext(context: Long)
Link copied to clipboard
expect abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int = 0)
actual abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)
actual abstract fun drawIndexedInstances(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)
Link copied to clipboard
expect abstract fun drawIndexedVertexBuffer(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     verticesPerPatch: Int = 0)
actual abstract fun drawIndexedVertexBuffer(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     verticesPerPatch: Int)
actual abstract fun drawIndexedVertexBuffer(    shader: Shader,     indexBuffer: IndexBuffer,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     indexOffset: Int,     indexCount: Int,     verticesPerPatch: Int)
Link copied to clipboard
expect abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int = 0)
actual abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)
actual abstract fun drawInstances(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     instanceAttributes: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     instanceOffset: Int,     instanceCount: Int,     verticesPerPatch: Int)
Link copied to clipboard
expect abstract fun drawVertexBuffer(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     verticesPerPatch: Int = 0)
actual abstract fun drawVertexBuffer(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     verticesPerPatch: Int)
actual abstract fun drawVertexBuffer(    shader: Shader,     vertexBuffers: List<VertexBuffer>,     drawPrimitive: DrawPrimitive,     vertexOffset: Int,     vertexCount: Int,     verticesPerPatch: Int)
Link copied to clipboard
expect abstract fun finish()

waits for all drawing to complete

actual abstract fun finish()

waits for all drawing to complete

actual abstract fun finish()

waits for all drawing to complete

Link copied to clipboard
expect abstract fun internalShaderResource(resourceId: String): String
actual abstract fun internalShaderResource(resourceId: String): String
actual abstract fun internalShaderResource(resourceId: String): String
Link copied to clipboard
expect abstract fun setState(drawStyle: DrawStyle)
actual abstract fun setState(drawStyle: DrawStyle)
actual abstract fun setState(drawStyle: DrawStyle)
Link copied to clipboard
expect abstract fun shaderConfiguration(): String
actual abstract fun shaderConfiguration(): String
actual abstract fun shaderConfiguration(): String

Properties

Link copied to clipboard
expect abstract val activeRenderTarget: RenderTarget
actual abstract val activeRenderTarget: RenderTarget
actual abstract val activeRenderTarget: RenderTarget
Link copied to clipboard
expect abstract val contextID: Long
actual abstract val contextID: Long
actual abstract val contextID: Long
Link copied to clipboard
expect abstract val fontImageMapManager: FontMapManager
actual abstract val fontImageMapManager: FontMapManager
actual abstract val fontImageMapManager: FontMapManager
Link copied to clipboard
expect abstract val fontVectorMapManager: FontMapManager
actual abstract val fontVectorMapManager: FontMapManager
actual abstract val fontVectorMapManager: FontMapManager
Link copied to clipboard
expect abstract val shaderGenerators: ShaderGenerators
actual abstract val shaderGenerators: ShaderGenerators
actual abstract val shaderGenerators: ShaderGenerators
Link copied to clipboard
expect abstract val shaderLanguage: ShaderLanguage
actual abstract val shaderLanguage: ShaderLanguage
actual abstract val shaderLanguage: ShaderLanguage

Sources

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard