summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Vertex.h
blob: 323d6b95dc2a51d141f0b02ab2081b17fec3ee3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * 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

#include <AK/Array.h>
#include <LibGfx/Vector3.h>
#include <LibGfx/Vector4.h>
#include <LibSoftGPU/Config.h>

namespace SoftGPU {

struct Vertex {
    FloatVector4 position;
    FloatVector4 eye_coordinates;
    FloatVector4 clip_coordinates;
    FloatVector4 window_coordinates;
    FloatVector4 color;
    Array<FloatVector4, NUM_SAMPLERS> tex_coords;
    FloatVector3 normal;
};

}