WGPUSurfaceConfiguration

expect interface WGPUSurfaceConfiguration

Options to wgpuSurfaceConfigure for defining how a @ref WGPUSurface will be rendered to and presented to the user. See @ref Surface-Configuration for more details.

Inheritors

Types

ByReference
Link copied to clipboard
class ByReference(val handle: WGPUSurfaceConfiguration.ByReference = io.ygdrasil.wgpu.android.WGPUSurfaceConfiguration.ByReference(com.sun.jna.Pointer.NULL)) : WGPUSurfaceConfiguration
ByValue
Link copied to clipboard
class ByValue(val handle: WGPUSurfaceConfiguration.ByValue = io.ygdrasil.wgpu.android.WGPUSurfaceConfiguration.ByValue(com.sun.jna.Pointer.NULL)) : WGPUSurfaceConfiguration
value class ByValue(val handle: CValue<WGPUSurfaceConfiguration>) : WGPUSurfaceConfiguration
Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
actual abstract var alphaMode: WGPUCompositeAlphaMode
expect abstract var alphaMode: WGPUCompositeAlphaMode

How the surface's frames will be composited on the screen.

actual abstract var alphaMode: WGPUCompositeAlphaMode
actual abstract var alphaMode: WGPUCompositeAlphaMode
Link copied to clipboard
actual abstract var device: WGPUDevice?
expect abstract var device: WGPUDevice?

The @ref WGPUDevice to use to render to surface's textures.

actual abstract var device: WGPUDevice?
actual abstract var device: WGPUDevice?
Link copied to clipboard
actual abstract var format: WGPUTextureFormat
expect abstract var format: WGPUTextureFormat

The @ref WGPUTextureFormat of the surface's textures.

actual abstract var format: WGPUTextureFormat
actual abstract var format: WGPUTextureFormat
handler
Link copied to clipboard
actual abstract val handler: NativeAddress
expect abstract val handler: NativeAddress
abstract val handler: NativeAddress
actual abstract val handler: NativeAddress
Link copied to clipboard
actual abstract var height: UInt
expect abstract var height: UInt

The height of the surface's textures.

actual abstract var height: UInt
actual abstract var height: UInt
Link copied to clipboard
actual abstract var nextInChain: NativeAddress?
expect abstract var nextInChain: NativeAddress?
actual abstract var nextInChain: NativeAddress?
actual abstract var nextInChain: NativeAddress?
Link copied to clipboard
actual abstract var presentMode: WGPUPresentMode
expect abstract var presentMode: WGPUPresentMode

When and in which order the surface's frames will be shown on the screen. Defaults to @ref WGPUPresentMode_Fifo.

actual abstract var presentMode: WGPUPresentMode
actual abstract var presentMode: WGPUPresentMode
Link copied to clipboard
actual abstract var usage: ULong
expect abstract var usage: ULong

The @ref WGPUTextureUsage of the surface's textures.

actual abstract var usage: ULong
actual abstract var usage: ULong
Link copied to clipboard
actual abstract var viewFormatCount: ULong
expect abstract var viewFormatCount: ULong
actual abstract var viewFormatCount: ULong
actual abstract var viewFormatCount: ULong
Link copied to clipboard

The additional @ref WGPUTextureFormat for @ref WGPUTextureView format reinterpretation of the surface's textures.

Link copied to clipboard
actual abstract var width: UInt
expect abstract var width: UInt

The width of the surface's textures.

actual abstract var width: UInt
actual abstract var width: UInt

Functions

Link copied to clipboard
open fun get(layout: StructLayout, offset: Long): MemorySegment
open fun get(layout: ValueLayout, offset: Long): MemorySegment
Link copied to clipboard
open fun getDouble(offset: Long): Double
Link copied to clipboard
open fun getFloat(offset: Long): Float
Link copied to clipboard
open fun getInt(offset: Long): Int
Link copied to clipboard
open fun getShort(offset: Long): Short
Link copied to clipboard
open fun getUInt(offset: Long): UInt
Link copied to clipboard
open fun getULong(offset: Long): ULong
Link copied to clipboard
open fun getUShort(offset: Long): UShort
Link copied to clipboard
open fun set(offset: Long, value: Boolean)
open fun set(offset: Long, value: Double)
open fun set(offset: Long, value: Float)
open fun set(offset: Long, value: Int)
open fun set(offset: Long, value: Short)
open fun set(offset: Long, value: UInt)
open fun set(offset: Long, value: ULong)
open fun set(offset: Long, value: UShort)
open fun set(layout: StructLayout, offset: Long, address: NativeAddress?)
open fun set(layout: ValueLayout, offset: Long, address: NativeAddress?)
toCValue
Link copied to clipboard
open fun toCValue(): CValue<WGPUSurfaceConfiguration>
Link copied to clipboard