mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +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:
parent
5f0eb812ac
commit
67b2f8d68d
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/sunverwerth
Commit: 67b2f8d68d
Pull-request: https://github.com/SerenityOS/serenity/pull/16225
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/supercomputer7
10 changed files with 139 additions and 1 deletions
18
Userland/Libraries/LibGLSL/Linker.cpp
Normal file
18
Userland/Libraries/LibGLSL/Linker.cpp
Normal file
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue