1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:37:35 +00:00

LibGPU+LibVirtGPU: Allow loading the driver and instantiating the device

This adds LibVirtGPU to the list of allowed drivers in LibGPU and adds a
factory method to create the device to libVirtGPU.
This commit is contained in:
Stephan Unverwerth 2022-12-19 15:30:23 +01:00 committed by Andreas Kling
parent c52abe0bea
commit bd7931ff23
3 changed files with 20 additions and 0 deletions

View file

@ -12,6 +12,8 @@ namespace VirtGPU {
class Device final : public GPU::Device {
public:
static ErrorOr<NonnullOwnPtr<Device>> create(Gfx::IntSize min_size);
virtual GPU::DeviceInfo info() const override;
virtual void draw_primitives(GPU::PrimitiveType, FloatMatrix4x4 const& model_view_transform, FloatMatrix4x4 const& projection_transform, Vector<GPU::Vertex>& vertices) override;