2
3
4
5
14
15
21
22
23
24
25
26
28 const std::string& data ,
30 const std::string& name ,
31 std::vector<uint8_t>& spirv
#define SPICES_PROFILE_ZONE
static void CompileToSPV(const std::string &data, const ShaderStage &stage, const std::string &name, std::vector< uint8_t > &spirv)
Compile glsl to spv.
Wrapper of shaderc compiler.
static bool Load(const std::string &fileName, ShaderStage stage, Shader *outShader)
Public called API, it is entrance.
ShaderLoader Class. This class only defines static function for load data from shader file.
ShaderStage
enum of shader stage.
const std::string defaultShaderPath
Const variable: Original Shader File Path.