mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
b41ad28654
This adds two methods, write_texels and read_texels, to the Image class. Conversion between image formats happens automatically. The layout of the client image data is passed in via ImageDataLayout struct.
21 lines
331 B
C++
21 lines
331 B
C++
/*
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibSoftGPU/ImageFormat.h>
|
|
|
|
namespace SoftGPU {
|
|
|
|
struct ImageDataLayout final {
|
|
ImageFormat format;
|
|
size_t column_stride;
|
|
size_t row_stride;
|
|
size_t depth_stride;
|
|
};
|
|
|
|
}
|