17 lines
462 B
C++
17 lines
462 B
C++
#ifndef SHADERLOADER_H
|
|
#define SHADERLOADER_H
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vulkan/vulkan.h>
|
|
|
|
class ShaderLoader
|
|
{
|
|
public:
|
|
ShaderLoader();
|
|
~ShaderLoader();
|
|
static VkPipelineShaderStageCreateInfo loadShader(VkDevice device, std::string filename, VkShaderStageFlagBits stage);
|
|
static void readDirectory(const std::string &directory, const std::string &pattern, std::map<std::string, std::string> &filelist, bool recursive);
|
|
};
|
|
|
|
#endif |