truly fixing crash error

This commit is contained in:
2025-05-22 15:50:25 +02:00
parent 92967aac1f
commit 165c5a7a5e
6 changed files with 20 additions and 22 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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 !");