setImage(_:)

    Replaces the texture’s data with a new Image. This will re-allocate new memory for the texture.

    ImageTexture.swift:93
    final func setImage(_ image: Image?)

    If you want to update the image, but don’t need to change its parameters (format, size), use update(image:) instead for better performance.

    Other members in extension

    Type members

    Instance members