Fix compilation
This commit is contained in:
parent
dea6dc1f3f
commit
8c609c87d9
@ -40,6 +40,26 @@ enum RenderPass: unsigned int;
|
||||
|
||||
class SPShaderManager : public NoCopy
|
||||
{
|
||||
public:
|
||||
|
||||
struct PassInfo
|
||||
{
|
||||
std::function<void()> m_use_function;
|
||||
|
||||
std::function<void()> m_unuse_function;
|
||||
|
||||
std::string m_vertex_shader;
|
||||
|
||||
std::string m_fragment_shader;
|
||||
|
||||
std::string m_skinned_mesh_shader;
|
||||
|
||||
std::vector<std::pair<std::string, std::type_index> > m_uniforms;
|
||||
|
||||
std::vector<std::tuple<std::string, std::string, bool, SamplerType> >
|
||||
m_prefilled_textures;
|
||||
};
|
||||
|
||||
private:
|
||||
typedef std::vector<std::pair< std::string, std::function<void
|
||||
(SPUniformAssigner*)> > > UniformAssigners;
|
||||
@ -61,24 +81,6 @@ private:
|
||||
}};
|
||||
};
|
||||
|
||||
struct PassInfo
|
||||
{
|
||||
std::function<void()> m_use_function;
|
||||
|
||||
std::function<void()> m_unuse_function;
|
||||
|
||||
std::string m_vertex_shader;
|
||||
|
||||
std::string m_fragment_shader;
|
||||
|
||||
std::string m_skinned_mesh_shader;
|
||||
|
||||
std::vector<std::pair<std::string, std::type_index> > m_uniforms;
|
||||
|
||||
std::vector<std::tuple<std::string, std::string, bool, SamplerType> >
|
||||
m_prefilled_textures;
|
||||
};
|
||||
|
||||
static SPShaderManager* m_spsm;
|
||||
|
||||
std::unordered_map<std::string, std::shared_ptr<SPShader> > m_shaders;
|
||||
|
Loading…
Reference in New Issue
Block a user