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

LibGL: Implement glCompileShader

This commit is contained in:
Stephan Unverwerth 2022-08-28 11:19:36 +02:00 committed by Andrew Kaster
parent d5277ecdfe
commit 42ef5c9e12
2 changed files with 8 additions and 2 deletions

View file

@ -24,6 +24,7 @@ public:
ErrorOr<void> add_source(StringView source_code);
ErrorOr<void> compile();
GLenum type() const { return m_type; }
bool compile_status() const { return m_compile_status; }
private:
explicit Shader(GLenum shader_type)
@ -33,6 +34,7 @@ private:
Vector<String> m_sources;
GLenum m_type;
bool m_compile_status { false };
};
}