Further refine GPU command list debugging.

This commit is contained in:
Tony Wasserka 2014-05-18 21:18:38 +02:00 committed by bunnei
parent b0051b2203
commit f82410e633
3 changed files with 27 additions and 4 deletions

View file

@ -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" },
};
}