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
commit 4e0643ae97
Notes: sideshowbarker 2024-07-17 14:23:33 +09:00
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);