/* * Copyright (c) 2022, Jelle Raaijmakers * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace GL { GPU::PixelType get_format_specification(GLenum format, GLenum type); ErrorOr get_validated_pixel_type(GLenum target, GLenum internal_format, GLenum format, GLenum type); GPU::PixelFormat pixel_format_for_internal_format(GLenum internal_format); }