Skip to main content

GPUCompilationInfo

The GPUCompilationInfo interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. Available only in secure contexts.

MDN Reference

Properties

messages

readonly messages: readonly GPUCompilationMessage[];

The messages read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.

MDN Reference