mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 01:27:59 -05:00
Further refine GPU command list debugging.
This commit is contained in:
@ -100,6 +100,7 @@ public:
|
||||
auto& cmd = cmdlist.back();
|
||||
|
||||
size_t size = 2 + header.extra_data_length;
|
||||
size = (size + 1) / 2 * 2; // align to 8 bytes
|
||||
cmd.reserve(size);
|
||||
std::copy(parse_pointer, parse_pointer + size, std::back_inserter(cmd));
|
||||
|
||||
|
@ -4,6 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <initializer_list>
|
||||
#include <map>
|
||||
|
||||
#include "common/bit_field.h"
|
||||
#include "common/common_types.h"
|
||||
|
||||
@ -34,4 +37,17 @@ union CommandHeader {
|
||||
BitField<31, 1, u32> group_commands;
|
||||
};
|
||||
|
||||
static std::map<CommandId, const char*> command_names = {
|
||||
{CommandId::ViewportSizeX, "ViewportSizeX" },
|
||||
{CommandId::ViewportInvSizeX, "ViewportInvSizeX" },
|
||||
{CommandId::ViewportSizeY, "ViewportSizeY" },
|
||||
{CommandId::ViewportInvSizeY, "ViewportInvSizeY" },
|
||||
{CommandId::ViewportCorner, "ViewportCorner" },
|
||||
{CommandId::DepthBufferFormat, "DepthBufferFormat" },
|
||||
{CommandId::ColorBufferFormat, "ColorBufferFormat" },
|
||||
{CommandId::DepthBufferAddress, "DepthBufferAddress" },
|
||||
{CommandId::ColorBufferAddress, "ColorBufferAddress" },
|
||||
{CommandId::ColorBufferSize, "ColorBufferSize" },
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user