Further shader compilation development.
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
}
|
||||
13
include/opengl/handles/shader_handle_set.hpp
Normal file
13
include/opengl/handles/shader_handle_set.hpp
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user