[GPU] Handle kRegisters and kGammaRamp in the trace viewer

This commit is contained in:
Triang3l
2022-05-08 19:41:11 +03:00
parent 2473496c7e
commit 44cda56d35
2 changed files with 12 additions and 30 deletions

View File

@@ -408,6 +408,18 @@ void TraceViewer::DrawPacketDisassemblerUI() {
}
break;
}
case TraceCommandType::kRegisters: {
auto cmd = reinterpret_cast<const RegistersCommand*>(trace_ptr);
trace_ptr += sizeof(*cmd) + cmd->encoded_length;
// ImGui::BulletText("Registers");
break;
}
case TraceCommandType::kGammaRamp: {
auto cmd = reinterpret_cast<const GammaRampCommand*>(trace_ptr);
trace_ptr += sizeof(*cmd) + cmd->encoded_length;
// ImGui::BulletText("GammaRamp");
break;
}
}
}
ImGui::EndChild();