---
title: "blend_src: attribute in the TypeShade language reference"
description: "blend_src, an attribute in the TypeShade language reference. The decorated form of the blend_src option, location<0, vec4, { blend_src: 0 }> beside { blend_src…"
url: https://typeshade.dev/reference/attributes/blend_src/
language: en
---

# `@blend_src`

Attribute

The decorated form of the `blend_src` option, `location<0, vec4, { blend_src: 0 }>` beside `{ blend_src: 1 }`: which of the two colours a dual-source blend mixes this fragment output is.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
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; the GLSL lowering of a second source is not supported yet ([Rule 10.3](https://typeshade.dev/reference/rules/10-3/)), so a module using it fails closed there.

## See also

- [Attributes](https://typeshade.dev/reference/attributes/)
