WGSL compiler messages as data. More...
#include <cstdint>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | pulp::render::WgslDiagnostic |
Namespaces | |
| namespace | pulp |
| namespace | pulp::render |
Functions | |
| std::string_view | pulp::render::wgsl_severity_name (WgslDiagnostic::Severity severity) |
| std::string | pulp::render::format_wgsl_diagnostic (std::string_view source_name, const WgslDiagnostic &diagnostic) |
| name:line:column: severity: message, or name: severity: message without a position. | |
| std::string | pulp::render::format_wgsl_diagnostics (std::string_view source_name, const std::vector< WgslDiagnostic > &diagnostics) |
| One formatted diagnostic per line. | |
| bool | pulp::render::has_wgsl_errors (const std::vector< WgslDiagnostic > &diagnostics) |
WGSL compiler messages as data.
Dawn reports a shader's compile messages through GetCompilationInfo. GpuDevice::create_shader_module() collects them into WgslDiagnostic records, and the build-time validator behind pulp_add_wgsl_shaders() prints them in the file:line:column: severity: message form editors and CI logs already link.