2021-12-16 21:43:39 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
|
|
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-01-15 17:33:55 +00:00
|
|
|
#include <AK/Array.h>
|
2022-03-27 13:43:51 +00:00
|
|
|
#include <LibGPU/Config.h>
|
2021-12-16 21:43:39 +00:00
|
|
|
#include <LibGfx/Vector3.h>
|
|
|
|
#include <LibGfx/Vector4.h>
|
|
|
|
|
2022-03-27 13:43:51 +00:00
|
|
|
namespace GPU {
|
2021-12-16 21:43:39 +00:00
|
|
|
|
|
|
|
struct Vertex {
|
|
|
|
FloatVector4 position;
|
2021-12-29 23:47:53 +00:00
|
|
|
FloatVector4 eye_coordinates;
|
|
|
|
FloatVector4 clip_coordinates;
|
|
|
|
FloatVector4 window_coordinates;
|
2021-12-16 21:43:39 +00:00
|
|
|
FloatVector4 color;
|
2022-09-04 22:40:27 +00:00
|
|
|
Array<FloatVector4, GPU::NUM_TEXTURE_UNITS> tex_coords;
|
2021-12-16 21:43:39 +00:00
|
|
|
FloatVector3 normal;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|