1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

vk: C++-ify the debug marker sync object member names

This commit is contained in:
kd-11 2023-05-17 18:39:14 +03:00 committed by kd-11
parent fad6647255
commit 56ebae773c
2 changed files with 12 additions and 11 deletions

View File

@ -281,23 +281,23 @@ namespace vk
}
debug_marker_scope::debug_marker_scope(const vk::command_buffer& cmd, const std::string& message)
: dev(&cmd.get_command_pool().get_owner()), cb(&cmd), message(message)
: m_device(&cmd.get_command_pool().get_owner()), m_cb(&cmd), m_message(message), m_tag(rsx::get_shared_tag())
{
vk::device_debug_marker::insert(
*dev,
*cb,
fmt::format("0x%x: Enter %s", rsx::get_shared_tag(), message)
*m_device,
*m_cb,
fmt::format("0x%x: Enter %s", m_tag, m_message)
);
}
debug_marker_scope::~debug_marker_scope()
{
ensure(cb && cb->is_recording());
ensure(m_cb && m_cb->is_recording());
vk::device_debug_marker::insert(
*dev,
*cb,
fmt::format("0x%x: Exit %s", rsx::get_shared_tag(), message)
*m_device,
*m_cb,
fmt::format("0x%x: Exit %s", m_tag, m_message)
);
}

View File

@ -132,9 +132,10 @@ namespace vk
class debug_marker_scope
{
const vk::render_device* dev;
const vk::command_buffer* cb;
std::string message;
const vk::render_device* m_device;
const vk::command_buffer* m_cb;
std::string m_message;
u32 m_tag;
public:
debug_marker_scope(const vk::command_buffer& cmd, const std::string& text);