files/en-us/web/api/gpucompilationmessage/index.md
{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{AvailableInWorkers}}
The GPUCompilationMessage interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} represents a single informational, warning, or error message generated by the GPU shader module compiler.
An array of GPUCompilationMessage objects is available in the messages property of the {{domxref("GPUCompilationInfo")}} object accessed via {{domxref("GPUShaderModule.getCompilationInfo()")}}.
{{InheritanceDiagram}}
"error", "info", or "warning".See the main GPUCompilationInfo page for an example.
{{Specifications}}
{{Compat}}