// Copyright 2014 Citra Emulator Project // Licensed under GPLv2 // Refer to the license.txt file included. #pragma once #include #include #include "video_core/pica.h" namespace Pica { namespace DebugUtils { using TriangleTopology = Regs::TriangleTopology; // Simple utility class for dumping geometry data to an OBJ file class GeometryDumper { public: void AddVertex(std::array pos, TriangleTopology topology); void Dump(); private: struct Vertex { std::array pos; }; struct Face { int index[3]; }; std::vector vertices; std::vector faces; }; void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data, u32 swizzle_size, u32 main_offset, const Regs::VSOutputAttributes* output_attributes); } // namespace } // namespace