RawPayload
On this page

RawPayload

Type in IR

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

import type { RawPayload } from 'typeshade'

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

Syntax

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

Source

src/core/ir/nodes.ts, line 361, at commit 26de7be8

Edit this page Report a problem