1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

LibVirtGPU: Add a new GPU device that talks to our VirtIO-GPU driver

At this moment this only contains function stubs.
This commit is contained in:
Stephan Unverwerth 2022-12-19 15:24:07 +01:00 committed by Andreas Kling
parent 3b2ded1d44
commit c52abe0bea
9 changed files with 335 additions and 0 deletions

View file

@ -0,0 +1,37 @@
/*
* Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibVirtGPU/Image.h>
namespace VirtGPU {
Image::Image(void const* ownership_token, GPU::PixelFormat const& pixel_format, u32 width, u32 height, u32 depth, u32 max_levels)
: GPU::Image(ownership_token, pixel_format, width, height, depth, max_levels)
{
dbgln("VirtGPU::Image::Image(): unimplemented");
}
void Image::regenerate_mipmaps()
{
dbgln("VirtGPU::Image::regenerate_mipmaps(): unimplemented");
}
void Image::write_texels(u32, Vector3<i32> const&, void const*, GPU::ImageDataLayout const&)
{
dbgln("VirtGPU::Image::write_texels(): unimplemented");
}
void Image::read_texels(u32, Vector3<i32> const&, void*, GPU::ImageDataLayout const&) const
{
dbgln("VirtGPU::Image::read_texels(): unimplemented");
}
void Image::copy_texels(GPU::Image const&, u32, Vector3<u32> const&, Vector3<u32> const&, u32, Vector3<u32> const&)
{
dbgln("VirtGPU::Image::copy_texels(): unimplemented");
}
}