WGPURequestAdapterOptions

expect interface WGPURequestAdapterOptions

Types

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

Properties

Link copied to clipboard
actual abstract var backendType: WGPUBackendType
expect abstract var backendType: WGPUBackendType

If set, requires the adapter to have a particular backend type. If this is not possible, the request returns null.

actual abstract var backendType: WGPUBackendType
actual abstract var backendType: WGPUBackendType
Link copied to clipboard
actual abstract var compatibleSurface: WGPUSurface?
expect abstract var compatibleSurface: WGPUSurface?

If set, requires the adapter to be able to output to a particular surface. If this is not possible, the request returns null.

actual abstract var compatibleSurface: WGPUSurface?
actual abstract var compatibleSurface: WGPUSurface?
Link copied to clipboard
actual abstract var featureLevel: WGPUFeatureLevel
expect abstract var featureLevel: WGPUFeatureLevel

"Feature level" for the adapter request. If an adapter is returned, it must support the features and limits in the requested feature level.

actual abstract var featureLevel: WGPUFeatureLevel
actual abstract var featureLevel: WGPUFeatureLevel
Link copied to clipboard
actual abstract var forceFallbackAdapter: Boolean
expect abstract var forceFallbackAdapter: Boolean

If true, requires the adapter to be a "fallback" adapter as defined by the JS spec. If this is not possible, the request returns null.

actual abstract var forceFallbackAdapter: Boolean
actual abstract var forceFallbackAdapter: Boolean
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 nextInChain: NativeAddress?
expect abstract var nextInChain: NativeAddress?
actual abstract var nextInChain: NativeAddress?
actual abstract var nextInChain: NativeAddress?
Link copied to clipboard

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<WGPURequestAdapterOptions>
Link copied to clipboard