Contents

init(from:)

Asynchronously creates a texture resource from a low-level texture.

Declaration

@MainActor @preconcurrency convenience init(from texture: LowLevelTexture) async throws

Parameters

  • texture:

    The texture data that defines the resource.