DeviceInfo.h 551 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/ByteString.h>
  8. namespace GPU {
  9. struct DeviceInfo final {
  10. ByteString vendor_name;
  11. ByteString device_name;
  12. unsigned num_texture_units;
  13. unsigned num_lights;
  14. unsigned max_clip_planes;
  15. unsigned max_texture_size;
  16. float max_texture_lod_bias;
  17. u8 stencil_bits;
  18. bool supports_npot_textures;
  19. bool supports_texture_clamp_to_edge;
  20. bool supports_texture_env_add;
  21. };
  22. }