Further refine GPU command list debugging.
This commit is contained in:
parent
b0051b2203
commit
f82410e633
3 changed files with 27 additions and 4 deletions
|
@ -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" },
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue