1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:17:35 +00:00

LibGL+LibGPU+LibSoftGPU: Move ImageFormat.h to LibGPU

This commit is contained in:
Stephan Unverwerth 2022-03-15 13:19:03 +01:00 committed by Andreas Kling
parent 24d420312c
commit 4e0643ae97
8 changed files with 172 additions and 172 deletions

View file

@ -1219,9 +1219,9 @@ DepthType Device::get_depthbuffer_value(int x, int y)
return m_frame_buffer->depth_buffer()->scanline(y)[x];
}
NonnullRefPtr<Image> Device::create_image(ImageFormat format, unsigned width, unsigned height, unsigned depth, unsigned levels, unsigned layers)
NonnullRefPtr<Image> Device::create_image(GPU::ImageFormat format, unsigned width, unsigned height, unsigned depth, unsigned levels, unsigned layers)
{
VERIFY(format == ImageFormat::BGRA8888);
VERIFY(format == GPU::ImageFormat::BGRA8888);
VERIFY(width > 0);
VERIFY(height > 0);
VERIFY(depth > 0);