mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
LibSoftGPU: Define a simple shader instruction set
This adds a simple instruction set with basic operations and adds an instruction list to the shader class.
This commit is contained in:
parent
bb28492af0
commit
1e548a84d6
4 changed files with 74 additions and 3 deletions
|
@ -6,13 +6,20 @@
|
|||
|
||||
#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);
|
||||
Shader(void const* ownership_token, Vector<Instruction> const&);
|
||||
|
||||
Vector<Instruction> const& instructions() const { return m_instructions; }
|
||||
|
||||
private:
|
||||
Vector<Instruction> m_instructions;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue