WGPUSurfaceTexture

value class WGPUSurfaceTexture(val $mem: MemorySegment)

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

Constructors

Link copied to clipboard
constructor(gc: Boolean)
constructor($mem: MemorySegment)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val $mem: MemorySegment
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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