@blend_src
On this page

@blend_src

Attribute

Which of the two colours a dual-source blend mixes this fragment output is: @blend_src(0) and @blend_src(1), both at @location(0).

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

declare function blend_src(n: number): (target: unknown, context?: unknown) => void

Parameters

  • n number

The declaration also names what the TypeScript decorator runtime hands a decorator, target and context. A call passes neither.

Description

Derives the dualSourceBlending capability; GLSL ES 3.00 has no second source, so a module using it fails closed there.

See also

Edit this page Report a problem