1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibGL+LibGPU+LibSoftGPU: Load SoftGPU driver dynamically

This loads libsoftgpu.so during GLContext creation and instantiates the
device class which is then passed into the GLContext constructor.
This commit is contained in:
Stephan Unverwerth 2022-03-27 18:54:31 +02:00 committed by Andreas Kling
parent 211d24a218
commit 5bb76e9b63
11 changed files with 165 additions and 9 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/Array.h>
#include <AK/Error.h>
#include <AK/NonnullRefPtr.h>
#include <AK/RefCounted.h>
#include <AK/RefPtr.h>
@ -28,6 +29,7 @@
#include <LibGfx/Matrix3x3.h>
#include <LibGfx/Matrix4x4.h>
#include <LibGfx/Rect.h>
#include <LibGfx/Size.h>
#include <LibGfx/Vector4.h>
namespace GPU {
@ -66,3 +68,7 @@ public:
};
}
typedef GPU::Device* (*serenity_gpu_create_device_t)(Gfx::IntSize const& size);
extern "C" GPU::Device* serenity_gpu_create_device(Gfx::IntSize const& size);