WGPUSurfaceTexture

actual interface WGPUSurfaceTexture

Inheritors

expect interface WGPUSurfaceTexture

Queried each frame from a @ref WGPUSurface to get a @ref WGPUTexture to render to along with some metadata. See @ref Surface-Presenting for more details.

actual interface WGPUSurfaceTexture : CStructure

Inheritors

actual interface WGPUSurfaceTexture

Inheritors

Types

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

Properties

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

Whether the call to wgpuSurfaceGetCurrentTexture succeeded and a hint as to why it might not have.

Link copied to clipboard
actual abstract var texture: WGPUTexture?
expect abstract var texture: WGPUTexture?

The @ref WGPUTexture representing the frame that will be shown on the surface. It is @ref ReturnedWithOwnership from @ref wgpuSurfaceGetCurrentTexture.

actual abstract var texture: WGPUTexture?
actual abstract var texture: WGPUTexture?

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