For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface GPUShaderModule

The GPUShaderModule interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline. Available only in secure contexts.

MDN Reference

interface GPUShaderModule {
    label: string;
    getCompilationInfo(): Promise<GPUCompilationInfo>;
}

Hierarchy (View Summary)

Index
label: string
  • The getCompilationInfo() method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.

    MDN Reference

    Returns Promise<GPUCompilationInfo>

Was this helpful?