Skip to main content

BlendState

Represents the blend state for color blending in the rendering pipeline.

TypeNameInterface Description
VariablesalphaBlendOperation: BlendOperation

Function: The blend operation for alpha blending in the first color attachment in the blend state.

Returns The alpha blend operation.

VariablescolorBlendOperation: BlendOperation

Function: The blend operation for the first color attachment in the blend state.

Returns The color blend operation.

VariablesdstAlphaFactor: BlendFactor

Function: The destination alpha blend factor for the first color attachment in the blend state.

Returns The destination alpha blend factor.

VariablesdstColorFactor: BlendFactor

Function: The destination color blend factor for the first attachment in the blend state.

Returns The destination color blend factor.

Variablesenabled: boolean

Function: Indicates whether blending is enabled for the color attachment state.

Returns True if blending is enabled, false otherwise.

VariablessrcAlphaFactor: BlendFactor

Function: The source alpha blend factor for the first color attachment in the blend state.

Returns The source alpha blend factor.

VariablessrcColorFactor: BlendFactor

Function: The source color blend factor for the first attachment in the blend state.

Returns The source color blend factor.

Functionsconstructor()

Function: Constructs a BlendState object.

Parameters

rtti: The native color blend state to wrap (optional).

Examples

constructor()

let obj = new APJS.BlendState();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use BlendState here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies