WgslCompiled
On this page

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 26de7be8.

Syntax

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 because getCompilationInfo() is a method of the module the device returns.

Instance methods

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

See also

Source

src/core/variant-link.ts, line 196, at commit 26de7be8

Edit this page Report a problem