mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 14:16:14 +03:00
19 lines
359 B
C++
19 lines
359 B
C++
#pragma once
|
|
#include "RHICommon.h"
|
|
|
|
namespace Flower
|
|
{
|
|
class ShaderCache
|
|
{
|
|
public:
|
|
VkShaderModule getShader(const std::string& path, bool reload);
|
|
|
|
void init();
|
|
void release();
|
|
|
|
private:
|
|
std::unordered_map<std::string, VkShaderModule> m_moduleCache;
|
|
|
|
void releaseModule(VkShaderModule shader);
|
|
};
|
|
} |