mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibGL+LibGPU+LibSoftGPU: Report maximum texture size
This commit is contained in:
parent
04ae4b89a3
commit
abc0c44f0b
6 changed files with 27 additions and 17 deletions
|
@ -19,10 +19,6 @@ namespace GL {
|
|||
|
||||
class Texture2D final : public Texture {
|
||||
public:
|
||||
// FIXME: These shouldn't really belong here, they're context specific.
|
||||
static constexpr u16 MAX_TEXTURE_SIZE = 2048;
|
||||
static constexpr u8 LOG2_MAX_TEXTURE_SIZE = AK::log2(MAX_TEXTURE_SIZE);
|
||||
|
||||
virtual bool is_texture_2d() const override { return true; }
|
||||
|
||||
void download_texture_data(GLuint lod, GPU::ImageDataLayout output_layout, GLvoid* pixels);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue