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

LibGLSL: Add LibGLSL

This adds a new library, LibGLSL for parsing and compiling GLSL programs
to LibGPU IR. Currently the compiler consists only of stubs.
This commit is contained in:
Stephan Unverwerth 2022-08-28 19:23:30 +02:00 committed by Andrew Kaster
parent 5f0eb812ac
commit 67b2f8d68d
10 changed files with 139 additions and 1 deletions

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGLSL/ObjectFile.h>
namespace GLSL {
class Compiler final {
public:
ErrorOr<NonnullOwnPtr<ObjectFile>> compile(Vector<String> const& sources);
String messages() const { return m_messages; }
private:
String m_messages;
};
}