30 lines
728 B
C++
30 lines
728 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include "assets/dynamic_data_store.hpp"
|
|
#include "assets/prefetch_lookup.hpp"
|
|
#include "assets/prefetch_queue.hpp"
|
|
#include "assets/prefetch_lookups/mesh_prefetch_lookup.hpp"
|
|
#include "assets/dynamic_read_buffers/dynamic_shader_buffer.hpp"
|
|
#include "util/string_list.hpp"
|
|
|
|
struct glsl_loader
|
|
{
|
|
static constexpr auto name = std::string_view("glsl");
|
|
|
|
[[nodiscard]] static std::error_code prefetch(
|
|
const file_dir_list& paths,
|
|
prefetch_queue& queue
|
|
);
|
|
|
|
[[nodiscard]] static std::error_code load(
|
|
dynamic_shader_buffer& buffer,
|
|
const file_dir_list& paths,
|
|
prefetch_lookup& id_lookup,
|
|
dynamic_data_store& store,
|
|
bool pedantic = false
|
|
);
|
|
}; |