Package-level declarations

Types

Link copied to clipboard
class AndroidContext(val surfaceHolder: SurfaceHolder, val wgpuContext: WGPUContext) : AutoCloseable
Link copied to clipboard
Link copied to clipboard
class CanvasContext(val canvas: HTMLCanvasElement, val wgpuContext: WGPUContext) : AutoCloseable
GLFWContext
Link copied to clipboard
class GLFWContext(val windowHandler: CValuesRef<<Error class: unknown class>>, val wgpuContext: WGPUContext) : AutoCloseable
class GLFWContext(val windowHandler: Long, val wgpuContext: WGPUContext) : AutoCloseable
Link copied to clipboard
class IosContext(val view: MTKView, val wgpuContext: WGPUContext) : AutoCloseable
Link copied to clipboard
Link copied to clipboard
actual class Surface : AutoCloseable
expect class Surface : AutoCloseable
actual class Surface : AutoCloseable
actual class Surface : AutoCloseable
actual class Surface : AutoCloseable
actual class Surface : AutoCloseable
Link copied to clipboard
class SurfaceRenderingContext(surface: Surface, val textureFormat: GPUTextureFormat) : RenderingContext
Link copied to clipboard
class TextureRenderingContext(val width: UInt, val height: UInt, val textureFormat: GPUTextureFormat, device: GPUDevice) : RenderingContext
Link copied to clipboard
class WGPUContext(val surface: Surface, val adapter: GPUAdapter, val device: GPUDevice, val renderingContext: RenderingContext) : AutoCloseable

Functions

Link copied to clipboard
suspend fun androidContextRenderer(surfaceHolder: SurfaceHolder, width: Int, height: Int, deferredRendering: Boolean = false, onUncapturedError: GPUUncapturedErrorCallback? = null): AndroidContext
Link copied to clipboard
actual inline fun arrayBufferOf(input: FloatArray, action: (ArrayBuffer) -> Unit)
expect inline fun arrayBufferOf(input: FloatArray, action: (ArrayBuffer) -> Unit)
actual inline fun arrayBufferOf(input: FloatArray, action: (ArrayBuffer) -> Unit)
actual inline fun arrayBufferOf(input: FloatArray, action: (ArrayBuffer) -> Unit)
actual inline fun arrayBufferOf(input: FloatArray, action: (ArrayBuffer) -> Unit)
Link copied to clipboard
fun MemorySegment.asArrayBuffer(size: Long): ArrayBuffer
Link copied to clipboard
inline fun FloatArray.asArraybuffer(action: (ArrayBuffer) -> Unit)
Link copied to clipboard
fun ArrayBuffer.asMemorySegment(sizeInBytes: Long): MemorySegment
Link copied to clipboard
suspend fun <T> autoClosableContext(block: suspend AutoClosableContext.() -> T): T
Link copied to clipboard
suspend fun canvasContextRenderer(htmlCanvas: HTMLCanvasElement? = null, deferredRendering: Boolean = false, width: Int? = null, height: Int? = null, onUncapturedError: GPUUncapturedErrorCallback? = null): CanvasContext
Link copied to clipboard
expect fun WGPU.getNativeSurface(window: CPointer<<Error class: unknown class>>): NativeSurface
actual fun WGPU.getNativeSurface(window: CPointer<<Error class: unknown class>>): NativeSurface
actual fun WGPU.getNativeSurface(window: CPointer<<Error class: unknown class>>): NativeSurface
glfwContextRenderer
Link copied to clipboard
suspend fun glfwContextRenderer(width: Int = 1, height: Int = 1, title: String = "", deferredRendering: Boolean = false, onUncapturedError: GPUUncapturedErrorCallback? = null): GLFWContext
suspend fun glfwContextRenderer(width: Int = 1, height: Int = 1, title: String = "", deferredRendering: Boolean = false, onUncapturedError: GPUUncapturedErrorCallback? = null): GLFWContext
Link copied to clipboard
suspend fun iosContextRenderer(view: MTKView, width: Int, height: Int, deferredRendering: Boolean = false): IosContext
Link copied to clipboard
fun map(input: SurfaceConfiguration): WGPUCanvasConfiguration
Link copied to clipboard
fun Pointer.toNativeAddress(): JvmNativeAddress
fun Long.toNativeAddress(): JvmNativeAddress
Link copied to clipboard
actual fun ByteArray.writeInto(target: ArrayBuffer)
actual fun DoubleArray.writeInto(target: ArrayBuffer)
actual fun FloatArray.writeInto(target: ArrayBuffer)
actual fun IntArray.writeInto(target: ArrayBuffer)
actual fun ShortArray.writeInto(target: ArrayBuffer)
actual fun UByteArray.writeInto(target: ArrayBuffer)
actual fun UIntArray.writeInto(target: ArrayBuffer)
actual fun UShortArray.writeInto(target: ArrayBuffer)
expect fun ByteArray.writeInto(target: ArrayBuffer)
expect fun DoubleArray.writeInto(target: ArrayBuffer)
expect fun FloatArray.writeInto(target: ArrayBuffer)
expect fun IntArray.writeInto(target: ArrayBuffer)
expect fun ShortArray.writeInto(target: ArrayBuffer)
expect fun UByteArray.writeInto(target: ArrayBuffer)
expect fun UIntArray.writeInto(target: ArrayBuffer)
expect fun UShortArray.writeInto(target: ArrayBuffer)
actual fun ByteArray.writeInto(target: ArrayBuffer)
actual fun DoubleArray.writeInto(target: ArrayBuffer)
actual fun FloatArray.writeInto(target: ArrayBuffer)
actual fun IntArray.writeInto(target: ArrayBuffer)
actual fun ShortArray.writeInto(target: ArrayBuffer)
actual fun UByteArray.writeInto(target: ArrayBuffer)
actual fun UIntArray.writeInto(target: ArrayBuffer)
actual fun UShortArray.writeInto(target: ArrayBuffer)
actual fun ByteArray.writeInto(target: ArrayBuffer)
actual fun DoubleArray.writeInto(target: ArrayBuffer)
actual fun FloatArray.writeInto(target: ArrayBuffer)
actual fun IntArray.writeInto(target: ArrayBuffer)
actual fun ShortArray.writeInto(target: ArrayBuffer)
actual fun UByteArray.writeInto(target: ArrayBuffer)
actual fun UIntArray.writeInto(target: ArrayBuffer)
actual fun UShortArray.writeInto(target: ArrayBuffer)
actual fun ByteArray.writeInto(target: ArrayBuffer)
actual fun DoubleArray.writeInto(target: ArrayBuffer)
actual fun FloatArray.writeInto(target: ArrayBuffer)
actual fun IntArray.writeInto(target: ArrayBuffer)
actual fun ShortArray.writeInto(target: ArrayBuffer)
actual fun UByteArray.writeInto(target: ArrayBuffer)
actual fun UIntArray.writeInto(target: ArrayBuffer)
actual fun UShortArray.writeInto(target: ArrayBuffer)
actual fun ByteArray.writeInto(target: ArrayBuffer)
actual fun DoubleArray.writeInto(target: ArrayBuffer)
actual fun FloatArray.writeInto(target: ArrayBuffer)
actual fun IntArray.writeInto(target: ArrayBuffer)
actual fun ShortArray.writeInto(target: ArrayBuffer)
actual fun UByteArray.writeInto(target: ArrayBuffer)
actual fun UIntArray.writeInto(target: ArrayBuffer)
actual fun UShortArray.writeInto(target: ArrayBuffer)