summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/Image.h
blob: ca3ffe1c879abd2f84d478b4f88ba751d6dec072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Error.h>
#include <LibGL/GL/gl.h>
#include <LibGL/GLContext.h>
#include <LibGPU/ImageDataLayout.h>
#include <LibGPU/ImageFormat.h>

namespace GL {

GPU::PixelType get_format_specification(GLenum format, GLenum type);
ErrorOr<GPU::PixelType> get_validated_pixel_type(GLenum target, GLenum internal_format, GLenum format, GLenum type);
GPU::PixelFormat pixel_format_for_internal_format(GLenum internal_format);

}