Further shader compilation development.

This commit is contained in:
zy4n
2025-03-22 17:40:08 +01:00
parent e01b8c2e09
commit 510398423a
45 changed files with 1567 additions and 1097 deletions

View File

@@ -8,6 +8,11 @@ struct shader_handle
{
constexpr bool operator==(const shader_handle&) const = default;
GLuint shader_id{ 0 };
constexpr bool valid() const
{
return id != 0;
}
GLuint id{ 0 };
};
}

View File

@@ -0,0 +1,13 @@
#pragma once
#include "shader_handle.hpp"
#include "opengl/shading/shader_stage.hpp"
namespace zgl
{
struct shader_handle_set
{
std::array<shader_handle, zgl::shading::stage::count> stages;
};
}