---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/interfaces/SsTextureBinding.md
---
# Interface: SsTextureBinding

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:58](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L58)

One entry of the texture table `drawInto` resolves batches against.

The table is handed over when it changes (`SsContext.setTextures`), and the
context keeps each paint alive until the table is replaced.

`textureHash` is `cellmap.name_hash`, which is exactly `DrawBatch.texture_hash`
— get it from `SsRuntime.hashString`, never by re-implementing FNV-1a.

## Properties

### paint

> **paint**: [`SkPaintHandle`](../type-aliases/SkPaintHandle.md)

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:61](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L61)

Carries the atlas image shader.

***

### textureHash

> **textureHash**: `number`

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:59](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L59)
