# `TextureSampling`

> 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.

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

How a texture is filtered.

## Members

| Member | Kind | Summary |
| --- | --- | --- |
| <a id="filter"></a>[`filter?`](TextureSampling.filter.md) | property | 'pixel': nearest-neighbour, for pixel art and data maps. |
| <a id="anisotropy"></a>[`anisotropy?`](TextureSampling.anisotropy.md) | property | 1..16, clamped to the device. |

## Declaration

```ts
export interface TextureSampling {
  filter?: 'smooth' | 'pixel';
  anisotropy?: number | 'max';
}
```

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `TextureSampling` names no product |
| 2. A precedent | pass: [glTF 2.0 samplers](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#samplers) (row `G29`); [Unity Texture.anisoLevel](https://docs.unity3d.com/ScriptReference/Texture-anisoLevel.html) (row `G29`) |
| 3. Two apps, or labs | one app recorded: app-e61a0b42ad (spec 3.1 rule 3 asks for two, or labs) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `G29` at tier stable (a member only where no rule, data, asset or app code serves the need) |
