mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
Huge compile performance refactor
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
#include <stdint.h>
|
||||
#include "hecl/Blender/BlenderConnection.hpp"
|
||||
#include <cstdint>
|
||||
#include "hecl/Blender/Connection.hpp"
|
||||
#include "BlenderSupport.hpp"
|
||||
|
||||
extern "C" uint8_t RETRO_MASTER_SHADER[];
|
||||
extern "C" size_t RETRO_MASTER_SHADER_SZ;
|
||||
|
||||
namespace DataSpec
|
||||
{
|
||||
namespace Blender
|
||||
namespace DataSpec::Blender
|
||||
{
|
||||
|
||||
bool BuildMasterShader(const hecl::ProjectPath& path)
|
||||
{
|
||||
hecl::BlenderConnection& conn = hecl::BlenderConnection::SharedConnection();
|
||||
if (!conn.createBlend(path, hecl::BlenderConnection::BlendType::None))
|
||||
hecl::blender::Connection& conn = hecl::blender::Connection::SharedConnection();
|
||||
if (!conn.createBlend(path, hecl::blender::BlendType::None))
|
||||
return false;
|
||||
{
|
||||
hecl::BlenderConnection::PyOutStream os = conn.beginPythonOut(true);
|
||||
hecl::blender::PyOutStream os = conn.beginPythonOut(true);
|
||||
os << RETRO_MASTER_SHADER;
|
||||
os << "make_master_shader_library()\n";
|
||||
}
|
||||
@@ -24,4 +22,3 @@ bool BuildMasterShader(const hecl::ProjectPath& path)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,14 +3,11 @@
|
||||
|
||||
#include <hecl/hecl.hpp>
|
||||
|
||||
namespace DataSpec
|
||||
{
|
||||
namespace Blender
|
||||
namespace DataSpec::Blender
|
||||
{
|
||||
|
||||
bool BuildMasterShader(const hecl::ProjectPath& path);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _RETRO_BLENDER_SUPPORT_HPP_
|
||||
|
||||
Reference in New Issue
Block a user