mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibSoftGPU: Delegate shader creation to new class ShaderCompiler
This commit is contained in:
parent
5bab17596d
commit
c25359df47
4 changed files with 44 additions and 2 deletions
17
Userland/Libraries/LibSoftGPU/ShaderCompiler.cpp
Normal file
17
Userland/Libraries/LibSoftGPU/ShaderCompiler.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibSoftGPU/ShaderCompiler.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
ErrorOr<NonnullRefPtr<Shader>> ShaderCompiler::compile(void const* ownership_token, GPU::IR::Shader const&)
|
||||
{
|
||||
// FIXME: implement the shader compiler
|
||||
return adopt_ref(*new Shader(ownership_token, {}));
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue