mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +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
21
Userland/Libraries/LibSoftGPU/ShaderCompiler.h
Normal file
21
Userland/Libraries/LibSoftGPU/ShaderCompiler.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Error.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibGPU/IR.h>
|
||||
#include <LibSoftGPU/Shader.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
class ShaderCompiler final {
|
||||
public:
|
||||
ErrorOr<NonnullRefPtr<Shader>> compile(void const* ownership_token, GPU::IR::Shader const&);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue