1
Fork 0
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:
Stephan Unverwerth 2022-09-18 16:32:09 +02:00 committed by Andrew Kaster
parent 5bab17596d
commit c25359df47
4 changed files with 44 additions and 2 deletions

View 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, {}));
}
}