Image.h 548 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Error.h>
  8. #include <LibGL/GL/gl.h>
  9. #include <LibGL/GLContext.h>
  10. #include <LibGPU/ImageDataLayout.h>
  11. #include <LibGPU/ImageFormat.h>
  12. namespace GL {
  13. GPU::PixelType get_format_specification(GLenum format, GLenum type);
  14. ErrorOr<GPU::PixelType> get_validated_pixel_type(GLenum target, GLenum internal_format, GLenum format, GLenum type);
  15. GPU::PixelFormat pixel_format_for_internal_format(GLenum internal_format);
  16. }