diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-12-19 15:24:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-26 09:39:20 +0100 |
commit | c52abe0bea8c8ee29794f236b005b46a844a50cc (patch) | |
tree | a8df2caa734c3cb1a938d65f58fd45b9f38bf9e4 /Userland/Libraries/LibVirtGPU/Image.cpp | |
parent | 3b2ded1d4405fc51acb8bbbd24e06cf00198dac8 (diff) | |
download | serenity-c52abe0bea8c8ee29794f236b005b46a844a50cc.zip |
LibVirtGPU: Add a new GPU device that talks to our VirtIO-GPU driver
At this moment this only contains function stubs.
Diffstat (limited to 'Userland/Libraries/LibVirtGPU/Image.cpp')
-rw-r--r-- | Userland/Libraries/LibVirtGPU/Image.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Userland/Libraries/LibVirtGPU/Image.cpp b/Userland/Libraries/LibVirtGPU/Image.cpp new file mode 100644 index 0000000000..f360e99a8f --- /dev/null +++ b/Userland/Libraries/LibVirtGPU/Image.cpp @@ -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"); +} + +} |