mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibGL+LibSoftGPU: Add GPU side shader infrastructure
This adds a shader class to LibSoftGPU and makes use of it when linking GLSL program in LibGL. Also adds actual rendering code to the shader tests.
This commit is contained in:
parent
4ad41e6680
commit
93ab2db80f
11 changed files with 96 additions and 3 deletions
16
Userland/Libraries/LibSoftGPU/Shader.cpp
Normal file
16
Userland/Libraries/LibSoftGPU/Shader.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibSoftGPU/Shader.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
Shader::Shader(void const* ownership_token)
|
||||
: GPU::Shader(ownership_token)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue