Files
aurora/lib/gfx/pipeline_cache.hpp
Luke Street 1533a48c7d Reworked pipeline cache with sqlite (#108)
* Reworked pipeline cache with sqlite

* Include <ranges> in common.cpp (sigh)

* Restore tracy thread names
2026-04-08 20:03:25 -06:00

30 lines
654 B
C++

#pragma once
#include "common.hpp"
#include <functional>
namespace aurora::gfx::clear {
struct PipelineConfig;
} // namespace aurora::gfx::clear
namespace aurora::gx {
struct PipelineConfig;
} // namespace aurora::gx
namespace aurora::gfx {
using NewPipelineCallback = std::function<wgpu::RenderPipeline()>;
void initialize_pipeline_cache();
void shutdown_pipeline_cache();
void begin_pipeline_frame();
void end_pipeline_frame();
template <typename Config>
PipelineRef find_pipeline(ShaderType type, const Config& config, NewPipelineCallback&& cb);
bool get_pipeline(PipelineRef ref, wgpu::RenderPipeline& pipeline);
} // namespace aurora::gfx