Further shader compilation development.
This commit is contained in:
@@ -7,34 +7,21 @@
|
||||
|
||||
namespace zgl
|
||||
{
|
||||
class shader_data
|
||||
struct shader_data
|
||||
{
|
||||
private:
|
||||
explicit shader_data(GLuint shader_id, GLenum type);
|
||||
|
||||
public:
|
||||
|
||||
shader_data() = default;
|
||||
|
||||
[[nodiscard]] static std::error_code build_from(
|
||||
GLenum type,
|
||||
const std::string& source,
|
||||
shader_data& data
|
||||
);
|
||||
inline shader_data(GLuint id);
|
||||
|
||||
shader_data(const shader_data& other) = delete;
|
||||
shader_data& operator=(const shader_data& other) = delete;
|
||||
|
||||
shader_data(shader_data&& other) noexcept;
|
||||
shader_data& operator=(shader_data&& other) noexcept;
|
||||
inline shader_data(shader_data&& other) noexcept;
|
||||
inline shader_data& operator=(shader_data&& other) noexcept;
|
||||
|
||||
[[nodiscard]] shader_handle handle() const;
|
||||
inline ~shader_data();
|
||||
|
||||
~shader_data();
|
||||
|
||||
private:
|
||||
shader_handle m_handle{};
|
||||
GLenum m_type{ GL_INVALID_ENUM };
|
||||
shader_handle handle{};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user