mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
1e548a84d6
This adds a simple instruction set with basic operations and adds an instruction list to the shader class.
26 lines
493 B
C++
26 lines
493 B
C++
/*
|
|
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Vector.h>
|
|
#include <LibGPU/Shader.h>
|
|
#include <LibSoftGPU/ISA.h>
|
|
|
|
namespace SoftGPU {
|
|
|
|
class Shader final : public GPU::Shader {
|
|
public:
|
|
Shader(void const* ownership_token, Vector<Instruction> const&);
|
|
|
|
Vector<Instruction> const& instructions() const { return m_instructions; }
|
|
|
|
private:
|
|
Vector<Instruction> m_instructions;
|
|
};
|
|
|
|
}
|