Console

Console

8 members

What a shader says through console.log: the events the CPU delivers, and the decoder for the ones the GPU records.

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

CONSOLE_METHODS Constant
The JavaScript Console API methods TypeShade recognizes in shader source today.
ConsoleEvent Interface
A console event produced by a TypeShade CPU/debug invocation.
ConsoleLog Interface
Where the console buffer is bound and what each entry in it means.
ConsoleMethod Type
Console methods currently lowered by the TypeShade source compiler.
ConsoleSink Type
Host callback used by the Playground, tests, and editor debug adapters.
ConsoleSite Interface
One console call the WGSL records: its method, where it was written, its arguments in the order written, and the words its entry takes.
decodeConsole Function
Decode a console buffer the host copied back into the events the CPU sink would receive.
isConsoleMethod Function
Whether name is one of the console methods the source compiler lowers, narrowing it to ConsoleMethod.

Edit this page Report a problem