mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-30 03:47:46 -05:00
This lets us convert CalculateVertexElementSizes() from a function using an out pointer into one that simply returns the array data as a return value. It also lets us dehardcode some values, as we can just query std::array's size() member function instead.
35 lines
636 B
C++
35 lines
636 B
C++
// Copyright 2011 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "VideoCommon/CPMemory.h"
|
|
|
|
namespace FifoAnalyzer
|
|
{
|
|
enum class DecodeMode
|
|
{
|
|
Record,
|
|
Playback,
|
|
};
|
|
|
|
u32 AnalyzeCommand(const u8* data, DecodeMode mode);
|
|
|
|
struct CPMemory
|
|
{
|
|
TVtxDesc vtxDesc;
|
|
std::array<VAT, 8> vtxAttr;
|
|
std::array<u32, 16> arrayBases;
|
|
std::array<u32, 16> arrayStrides;
|
|
};
|
|
|
|
void LoadCPReg(u32 subCmd, u32 value, CPMemory& cpMem);
|
|
|
|
extern bool s_DrawingObject;
|
|
extern FifoAnalyzer::CPMemory s_CpMem;
|
|
} // namespace FifoAnalyzer
|