Extract renderer shader catalog
This commit is contained in:
21
src/renderer_api/shader_catalog.h
Normal file
21
src/renderer_api/shader_catalog.h
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user