# `TextureInput`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Type · `import type { TextureInput } from '@holostep-configurators/runtime-client/contract';` · stable · since 2.0.0 · section 8. Materials and textures

A URL, or a texture with placement.

Inherited from [`TextureSpec`](TextureSpec.md): [`url`](TextureSpec.url.md), [`image`](TextureSpec.image.md), [`optimizedUrl`](TextureSpec.optimizedUrl.md), [`enabled`](TextureSpec.enabled.md), [`uv`](TextureSpec.uv.md), [`scale`](TextureSpec.scale.md), [`offset`](TextureSpec.offset.md), [`rotationDeg`](TextureSpec.rotationDeg.md), [`sizeM`](TextureSpec.sizeM.md), [`wrap`](TextureSpec.wrap.md), [`sampling`](TextureSpec.sampling.md), [`colorSpace`](TextureSpec.colorSpace.md).

## Declaration

```ts
export type TextureInput = string | TextureSpec;
```

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `TextureInput` names no product |
| 2. A precedent | pass: [createImageBitmap()](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap) (row `G23`); [Babylon.js DynamicTexture](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Materials/Textures/dynamicTexture.ts) (row `G23`) |
| 3. Two apps, or labs | one app recorded: app-bcb7ef21da (spec 3.1 rule 3 asks for two, or labs) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `G23` at tier stable (a member only where no rule, data, asset or app code serves the need) |
