18 lines
509 B
C++
18 lines
509 B
C++
#ifndef HGL_GRAPH_GLSL2SPV_INCLUDE
|
|
#define HGL_GRAPH_GLSL2SPV_INCLUDE
|
|
|
|
#include<vulkan/vulkan.h>
|
|
#include<vector>
|
|
#include<hgl/type/BaseString.h>
|
|
|
|
namespace hgl
|
|
{
|
|
namespace graph
|
|
{
|
|
void InitDefaultShaderBuildResource(); ///<初始化glsl2spv数值限定
|
|
|
|
bool GLSL2SPV(const VkShaderStageFlagBits shader_type,const char *shader_source,std::vector<uint32> &spirv,UTF8String &log,UTF8String &debug_log);
|
|
}//namespace graph
|
|
}//namespace hgl
|
|
#endif//HGL_GRAPH_GLSL2SPV_INCLUDE
|