---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/variables/SS_BLEND_STATES.md
---
# Variable: SS_BLEND_STATES

> `const` **SS_BLEND_STATES**: readonly `Readonly`<[`SSBlendState`](../interfaces/SSBlendState.md)>\[]

Defined in: [src/BlendState.ts:65](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/BlendState.ts#L65)

The colour blend for each [SSBlendMode](../enumerations/SSBlendMode.md), indexed by it.

SpriteStudio realises every blend as a fixed-function GPU blend state, reading
the destination framebuffer through the `Dst*` factors. These are those
states, and they are the same states whichever API is asked for them:
`ssplayer-webgl` hands them to `gl.blendFuncSeparate`, `ssplayer-pixi` registers
them as real GPU blend modes for both its WebGL and WebGPU backends. Writing
them once is what keeps the three tables from disagreeing.
