2022-09-14 23:48:10 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-09-17 17:50:43 +02:00
|
|
|
#include <AK/Vector.h>
|
2022-09-14 23:48:10 +02:00
|
|
|
#include <LibGPU/Shader.h>
|
2022-09-17 17:50:43 +02:00
|
|
|
#include <LibSoftGPU/ISA.h>
|
2022-09-14 23:48:10 +02:00
|
|
|
|
|
|
|
|
namespace SoftGPU {
|
|
|
|
|
|
|
|
|
|
class Shader final : public GPU::Shader {
|
|
|
|
|
public:
|
2022-09-17 17:50:43 +02:00
|
|
|
Shader(void const* ownership_token, Vector<Instruction> const&);
|
|
|
|
|
|
|
|
|
|
Vector<Instruction> const& instructions() const { return m_instructions; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Vector<Instruction> m_instructions;
|
2022-09-14 23:48:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|