diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-03-27 15:24:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-06 11:32:24 +0200 |
commit | 8f359bf758c277cb81c9907428d7e7aa1ac0d8ef (patch) | |
tree | 34329a5c2cbe97f586a02b7028ace1bb4e138373 /Userland/Libraries/LibGPU | |
parent | e416380826a680ca4f1de630f5407b1e997943bc (diff) | |
download | serenity-8f359bf758c277cb81c9907428d7e7aa1ac0d8ef.zip |
LibGPU+LibSoftGPU: Move RasterPosition into its own header in LibGPU
Diffstat (limited to 'Userland/Libraries/LibGPU')
-rw-r--r-- | Userland/Libraries/LibGPU/RasterPosition.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGPU/RasterPosition.h b/Userland/Libraries/LibGPU/RasterPosition.h new file mode 100644 index 0000000000..6d2b11362e --- /dev/null +++ b/Userland/Libraries/LibGPU/RasterPosition.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl> + * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibGfx/Vector4.h> + +namespace GPU { + +struct RasterPosition { + FloatVector4 window_coordinates { 0.0f, 0.0f, 0.0f, 1.0f }; + float eye_coordinate_distance { 0.0f }; + bool valid { true }; + FloatVector4 color_rgba { 1.0f, 1.0f, 1.0f, 1.0f }; + float color_index { 1.0f }; + FloatVector4 texture_coordinates { 0.0f, 0.0f, 0.0f, 1.0f }; +}; + +} |