Config.h 695 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Types.h>
  8. namespace GPU {
  9. // FIXME: These 3 types were originally introduced in LibSoftGPU and are currently needed by the device interface.
  10. // Once we refactor the interface these should move back into LibSoftGPU.
  11. using ColorType = u32; // BGRA:8888
  12. using DepthType = float;
  13. using StencilType = u8;
  14. // FIXME: This constant was originally introduced in LibSoftGPU and is currently used in the Vertex struct.
  15. // Once we refactor the interface this should move back into LibSoftGPU.
  16. static constexpr int NUM_TEXTURE_UNITS = 2;
  17. }