Renderer · type

SurfaceSource

What createSurfaceTexture takes: an image, or blocks.

Explained in Hello world.

type SurfaceSource = TexImageSource | CompressedTextureSource
import type { SurfaceSource } from '@driftengine/core';