1
Fork 0
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:
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,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&);
};
}