truly fixing crash error

This commit is contained in:
Kbz-8
2025-05-22 15:50:25 +02:00
parent 30d9cd64ad
commit 4396d0f7b7
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