AlphaBlendFactors.h 584 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 <LibGfx/Vector4.h>
  8. namespace SoftGPU {
  9. struct AlphaBlendFactors final {
  10. FloatVector4 src_constant {};
  11. float src_factor_src_alpha = 0;
  12. float src_factor_dst_alpha = 0;
  13. float src_factor_src_color = 0;
  14. float src_factor_dst_color = 0;
  15. FloatVector4 dst_constant {};
  16. float dst_factor_src_alpha = 0;
  17. float dst_factor_dst_alpha = 0;
  18. float dst_factor_src_color = 0;
  19. float dst_factor_dst_color = 0;
  20. };
  21. }