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

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

Defined in: packages/ssplayer-core/dist/index.d.ts:5751

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.
