Package-level declarations

Types

Link copied to clipboard
class AndroidContext(val surfaceHolder: SurfaceHolder, val wgpuContext: WGPUContext) : AutoCloseable
Link copied to clipboard
CanvasContext
Link copied to clipboard
class CanvasContext(val canvas: HTMLCanvasElement, val wgpuContext: WGPUContext) : AutoCloseable
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
Link copied to clipboard
class TextureRenderingContext(val width: UInt, val height: UInt, val textureFormat: TextureFormat, device: Device) : RenderingContext
Link copied to clipboard
class WGPUContext(val surface: Surface, val adapter: Adapter, val device: Device, val renderingContext: RenderingContext) : AutoCloseable

Functions

Link copied to clipboard
suspend fun androidContextRenderer(surfaceHolder: SurfaceHolder, width: Int, height: Int, deferredRendering: Boolean = false): AndroidContext
Link copied to clipboard
suspend fun <T> autoClosableContext(block: suspend AutoClosableContext.() -> T): T
canvasContextRenderer
Link copied to clipboard
suspend fun canvasContextRenderer(htmlCanvas: HTMLCanvasElement? = null, deferredRendering: Boolean = false, width: Int? = null, height: Int? = null): CanvasContext
suspend fun canvasContextRenderer(htmlCanvas: HTMLCanvasElement? = null, deferredRendering: Boolean = false, width: Int? = null, height: Int? = 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): GLFWContext
suspend fun glfwContextRenderer(width: Int = 1, height: Int = 1, title: String = "", deferredRendering: Boolean = false): GLFWContext
Link copied to clipboard
suspend fun iosContextRenderer(view: MTKView, width: Int, height: Int, deferredRendering: Boolean = false): IosContext
Link copied to clipboard
fun Pointer.toNativeAddress(): MemorySegment
fun Long.toNativeAddress(): MemorySegment