mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
#include <cstdint>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
#include "GPU/Debugger/GECommandTable.h"
|
|
// Extracted from Windows/GE Debugger/TabState.cpp
|
|
|
|
enum VertexListCols {
|
|
VERTEXLIST_COL_X,
|
|
VERTEXLIST_COL_Y,
|
|
VERTEXLIST_COL_Z,
|
|
VERTEXLIST_COL_U,
|
|
VERTEXLIST_COL_V,
|
|
VERTEXLIST_COL_COLOR,
|
|
VERTEXLIST_COL_NX,
|
|
VERTEXLIST_COL_NY,
|
|
VERTEXLIST_COL_NZ,
|
|
VERTEXLIST_COL_COUNT,
|
|
};
|
|
|
|
class GPUDebugInterface;
|
|
|
|
struct TabStateRow {
|
|
std::string_view title;
|
|
uint8_t cmd;
|
|
CmdFormatType fmt;
|
|
uint8_t enableCmd;
|
|
uint8_t otherCmd;
|
|
uint8_t otherCmd2;
|
|
};
|
|
|
|
extern const TabStateRow g_stateFlagsRows[];
|
|
extern const TabStateRow g_stateLightingRows[];
|
|
extern const TabStateRow g_stateTextureRows[];
|
|
extern const TabStateRow g_stateSettingsRows[];
|
|
extern const size_t g_stateFlagsRowsSize;
|
|
extern const size_t g_stateLightingRowsSize;
|
|
extern const size_t g_stateTextureRowsSize;
|
|
extern const size_t g_stateSettingsRowsSize;
|
|
|
|
struct GPUDebugVertex;
|
|
class VertexDecoder;
|
|
|
|
void FormatStateRow(GPUDebugInterface *debug, char *dest, size_t destSize, CmdFormatType fmt, u32 value, bool enabled, u32 otherValue, u32 otherValue2);
|
|
void FormatVertCol(char *dest, size_t destSize, const GPUDebugVertex &vert, int col);
|
|
void FormatVertColRaw(VertexDecoder *decoder, char *dest, size_t destSize, int row, int col);
|