RasterPosition.h 557 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
  3. * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibGfx/Vector4.h>
  9. namespace GPU {
  10. struct RasterPosition {
  11. FloatVector4 window_coordinates { 0.0f, 0.0f, 0.0f, 1.0f };
  12. float eye_coordinate_distance { 0.0f };
  13. bool valid { true };
  14. FloatVector4 color_rgba { 1.0f, 1.0f, 1.0f, 1.0f };
  15. float color_index { 1.0f };
  16. FloatVector4 texture_coordinates { 0.0f, 0.0f, 0.0f, 1.0f };
  17. };
  18. }