# TextureSource

type in `@dioramajs/diorama/glsl`

```ts
import type { TextureSource } from '@dioramajs/diorama/glsl'
```

A URL, a shared Texture (never disposed by us), or a loader whose Texture the instance owns.

```ts
type TextureSource = Texture | string | (signal: AbortSignal) => Promise<Texture>
```

Also exported from `@dioramajs/glsl`.

Defined in [packages/glsl/src/runtime.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/runtime.ts#L87).
