mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGL+LibGPU+LibSoftGPU: Move ImageFormat.h to LibGPU
This commit is contained in:
parent
24d420312c
commit
4e0643ae97
Notes:
sideshowbarker
2024-07-17 14:23:33 +09:00
Author: https://github.com/sunverwerth
Commit: 4e0643ae97
Pull-request: https://github.com/SerenityOS/serenity/pull/13294
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/gmta
8 changed files with 172 additions and 172 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue