mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
LibGPU+LibSoftGPU: Move RasterPosition into its own header in LibGPU
This commit is contained in:
parent
e416380826
commit
8f359bf758
Notes:
sideshowbarker
2024-07-17 14:23:09 +09:00
Author: https://github.com/sunverwerth
Commit: 8f359bf758
Pull-request: https://github.com/SerenityOS/serenity/pull/13294
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/gmta
3 changed files with 28 additions and 13 deletions
23
Userland/Libraries/LibGPU/RasterPosition.h
Normal file
23
Userland/Libraries/LibGPU/RasterPosition.h
Normal file
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue