1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07: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:
Stephan Unverwerth 2022-09-17 17:50:43 +02:00 committed by Andrew Kaster
parent bb28492af0
commit 1e548a84d6
4 changed files with 74 additions and 3 deletions

View file

@ -8,8 +8,9 @@
namespace SoftGPU {
Shader::Shader(void const* ownership_token)
Shader::Shader(void const* ownership_token, Vector<Instruction> const& instructions)
: GPU::Shader(ownership_token)
, m_instructions(instructions)
{
}