mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 06:33:36 +00:00
truly fixing crash error
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Scop
|
||||
// Only static meshes for now
|
||||
class Model
|
||||
{
|
||||
friend class ScopEngine;
|
||||
friend Model LoadModelFromObjFile(std::filesystem::path path) noexcept;
|
||||
|
||||
public:
|
||||
|
||||
@@ -74,6 +74,17 @@ namespace Scop
|
||||
};
|
||||
|
||||
std::shared_ptr<Shader> LoadShaderFromFile(const std::filesystem::path& filepath, ShaderType type, ShaderLayout layout);
|
||||
|
||||
static const Scop::ShaderLayout DefaultShaderLayout(
|
||||
{
|
||||
{ 1,
|
||||
Scop::ShaderSetLayout({
|
||||
{ 0, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER },
|
||||
{ 1, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER }
|
||||
})
|
||||
}
|
||||
}, {}
|
||||
);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -117,6 +117,7 @@ namespace Scop
|
||||
#endif
|
||||
m_scene_renderer.Destroy();
|
||||
m_renderer.Destroy();
|
||||
Model::s_default_material.reset();
|
||||
p_renderer_core.reset();
|
||||
SDL_Quit();
|
||||
Message("Successfully executed !");
|
||||
|
||||
Reference in New Issue
Block a user