removed shadergen namespace

This commit is contained in:
2023-03-21 18:05:48 +08:00
parent bc9fc9b50f
commit d26cae0086
24 changed files with 52 additions and 78 deletions

View File

@@ -12,7 +12,6 @@
using namespace hgl;
using namespace hgl::graph;
using namespace hgl::shadergen;
constexpr uint32_t SCREEN_WIDTH=1280;
constexpr uint32_t SCREEN_HEIGHT=720;

View File

@@ -33,11 +33,11 @@ using namespace hgl;
using namespace hgl::io;
using namespace hgl::graph;
namespace glsl_compiler
namespace hgl{namespace graph
{
bool Init();
void Close();
}//namespace glsl_compiler
bool InitShaderCompiler();
void CloseShaderCompiler();
}}//namespace hgl::graph
class VulkanApplicationFramework:WindowEvent
{
@@ -72,7 +72,7 @@ public:
virtual ~VulkanApplicationFramework()
{
glsl_compiler::Close();
CloseShaderCompiler();
win->Unjoin(this);
@@ -86,7 +86,7 @@ public:
virtual bool Init(int w,int h)
{
if(!glsl_compiler::Init())
if(!InitShaderCompiler())
return(false);
clear_color.Set(0,0,0,1);