Debian Codegraph @

Source/Core/VideoCommon/VertexLoaderX64.h

raw symbols SCIP
1 // Copyright 2015 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/CommonTypes.h"
7 #include "Common/x64Emitter.h"
8 #include "VideoCommon/VertexLoaderBase.h"
9
10 enum class VertexComponentFormat;
11 enum class ComponentFormat;
12 enum class ColorFormat;
13 enum class CPArray : u8;
14
15 class VertexLoaderX64 : public VertexLoaderBase, public Gen::X64CodeBlock
16 {
17 public:
18 VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att);
19
20 protected:
21 int RunVertices(const u8* src, u8* dst, int count) override;
22
23 private:
24 u32 m_src_ofs = 0;
25 u32 m_dst_ofs = 0;
26 Gen::FixupBranch m_skip_vertex;
27 Gen::OpArg GetVertexAddr(CPArray array, VertexComponentFormat attribute);
28 void ReadVertex(Gen::OpArg data, VertexComponentFormat attribute, ComponentFormat format,
29 int count_in, int count_out, bool dequantize, u8 scaling_exponent,
30 AttributeFormat* native_format);
31 void ReadColor(Gen::OpArg data, VertexComponentFormat attribute, ColorFormat format);
32 void GenerateVertexLoader();
33 };