Files
test/source/blender/gpu/vulkan/vk_shader_log.hh
Clément Foucault 1c96d0d861 Metal: Improve shader logging
This adds some `#line` directive between the
source file injection so that the log parser knowns
which file the errors originated from.

This is then followed by a scan over the combined
source to find out the real row number.

This needed some changes in the `Shader::plint_log`
to skip lines to avoid outputing redundant information.
2024-01-01 00:43:09 +13:00

20 lines
542 B
C++

/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#include "gpu_shader_private.hh"
namespace blender::gpu {
class VKLogParser : public GPULogParser {
public:
const char *parse_line(const char *source_combined,
const char *log_line,
GPULogItem &log_item) override;
protected:
const char *skip_name(const char *log_line);
const char *skip_severity_keyword(const char *log_line, GPULogItem &log_item);
};
} // namespace blender::gpu