1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +00:00

LibGL: Use LibGLSL to compile shaders

This commit is contained in:
Stephan Unverwerth 2022-08-28 19:24:58 +02:00 committed by Andrew Kaster
parent 67b2f8d68d
commit 4ad41e6680
4 changed files with 62 additions and 3 deletions

View file

@ -9,12 +9,14 @@
#include <AK/Error.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Optional.h>
#include <AK/OwnPtr.h>
#include <AK/RefCounted.h>
#include <AK/RefPtr.h>
#include <AK/String.h>
#include <AK/StringView.h>
#include <AK/Vector.h>
#include <LibGL/GL/glplatform.h>
#include <LibGL/GL/gl.h>
#include <LibGLSL/ObjectFile.h>
namespace GL {
@ -27,6 +29,7 @@ public:
ErrorOr<void> compile();
GLenum type() const { return m_type; }
bool compile_status() const { return m_compile_status; }
GLSL::ObjectFile const* object_file() const { return m_object_file.ptr(); }
size_t info_log_length() const;
size_t combined_source_length() const;
@ -41,6 +44,7 @@ private:
GLenum m_type;
bool m_compile_status { false };
Optional<String> m_info_log;
OwnPtr<GLSL::ObjectFile> m_object_file;
};
}