---
title: "WgslCompiled: interface in Variants, TypeShade API reference"
description: "WgslCompiled, an interface in Variants. A module that can report what its compilation produced; a GPUShaderModule satisfies it."
url: https://typeshade.dev/api/wgslcompiled/
language: en
---

# `WgslCompiled`

Interface in Variants

A module that can report what its compilation produced; a GPUShaderModule satisfies it.

`import type { WgslCompiled } from 'typeshade'`

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

## Syntax

```ts
interface WgslCompiled {
  getCompilationInfo(): Promise<{ readonly messages: readonly WgslMessage[] }>;
}
```

## Description

A module that can report what its compilation produced; a `GPUShaderModule` satisfies it. It is a separate interface from [`WgslValidator`](https://typeshade.dev/api/wgslvalidator/) because `getCompilationInfo()` is a method of the module the device returns.

## Instance methods

**`getCompilationInfo` `(): Promise<{ readonly messages: readonly WgslMessage[] }>`**

## See also

- [`WgslValidator`](https://typeshade.dev/api/wgslvalidator/)

## Source

[`src/core/variant-link.ts`, line 196](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/variant-link.ts#L196), at commit af54ddad5
