mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
1533a48c7d
* Reworked pipeline cache with sqlite * Include <ranges> in common.cpp (sigh) * Restore tracy thread names
30 lines
654 B
C++
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
|