---
title: "RawPayload: type in IR, TypeShade API reference"
description: "RawPayload, a type in IR. The argument to rawStmt: the wgsl and glsl source text of a raw statement."
url: https://typeshade.dev/api/rawpayload/
language: en
---

# `RawPayload`

Type in IR

The argument to rawStmt: the wgsl and glsl source text of a raw statement.

`import type { RawPayload } from 'typeshade'`
`import type { RawPayload } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
type RawPayload =
  | { readonly wgsl: string; readonly glsl?: string }
  | { readonly wgsl?: string; readonly glsl: string };
```

## Description

At least one side is required, so `rawStmt({})` does not compile.

## See also

- [`rawStmt`](https://typeshade.dev/api/rawstmt/)

## Source

[`src/core/ir/nodes.ts`, line 338](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/nodes.ts#L338), at commit af54ddad5
