Serenity Operating System
at master 21 lines 406 B view raw
1/* 2 * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <AK/Error.h> 10#include <AK/NonnullRefPtr.h> 11#include <LibGPU/IR.h> 12#include <LibSoftGPU/Shader.h> 13 14namespace SoftGPU { 15 16class ShaderCompiler final { 17public: 18 ErrorOr<NonnullRefPtr<Shader>> compile(void const* ownership_token, GPU::IR::Shader const&); 19}; 20 21}