Extract renderer shader catalog

This commit is contained in:
2026-06-01 17:36:25 +02:00
parent ad255a6ddf
commit d61c7f37c3
7 changed files with 204 additions and 55 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include "foundation/result.h"
#include <cstddef>
#include <span>
namespace pp::renderer {
constexpr std::size_t max_shader_catalog_entries = 256;
struct ShaderCatalogEntry {
const char* name = "";
const char* path = "";
};
[[nodiscard]] std::span<const ShaderCatalogEntry> panopainter_shader_catalog() noexcept;
[[nodiscard]] pp::foundation::Status validate_shader_catalog(
std::span<const ShaderCatalogEntry> catalog) noexcept;
}