diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-08-28 19:23:30 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-17 22:39:09 -0700 |
commit | 67b2f8d68dd8a9d0c87551650777700bd8f9d841 (patch) | |
tree | c7472f002a3a36ff54ce39e0d18bb95b017ee12e /Userland/Libraries/LibGLSL/Linker.cpp | |
parent | 5f0eb812ac1d1dcface444049c35feb78ad885f4 (diff) | |
download | serenity-67b2f8d68dd8a9d0c87551650777700bd8f9d841.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGLSL/Linker.cpp')
-rw-r--r-- | Userland/Libraries/LibGLSL/Linker.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGLSL/Linker.cpp b/Userland/Libraries/LibGLSL/Linker.cpp new file mode 100644 index 0000000000..367bf93e05 --- /dev/null +++ b/Userland/Libraries/LibGLSL/Linker.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <LibGLSL/Linker.h> + +namespace GLSL { + +ErrorOr<NonnullOwnPtr<LinkedShader>> Linker::link(Vector<ObjectFile const*> const&) +{ + // FIXME: implement this function + m_messages = TRY(String::from_utf8(""sv)); + return adopt_own(*new LinkedShader()); +} + +} |