mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 23:52:20 +01:00
[hud] Add debug label for HUD rendering
This commit is contained in:
parent
279c6f150a
commit
071dec7148
@ -277,6 +277,11 @@ namespace dxvk::hud {
|
|||||||
uint32_t dataPoint,
|
uint32_t dataPoint,
|
||||||
HudPos minPos,
|
HudPos minPos,
|
||||||
HudPos maxPos) {
|
HudPos maxPos) {
|
||||||
|
if (unlikely(m_device->isDebugEnabled())) {
|
||||||
|
ctx.cmd->cmdBeginDebugUtilsLabel(DxvkCmdBuffer::InitBuffer,
|
||||||
|
vk::makeLabel(0xf0c0dc, "HUD frame time processing"));
|
||||||
|
}
|
||||||
|
|
||||||
// Write current time stamp to the buffer
|
// Write current time stamp to the buffer
|
||||||
DxvkBufferSliceHandle sliceHandle = m_gpuBuffer->getSliceHandle();
|
DxvkBufferSliceHandle sliceHandle = m_gpuBuffer->getSliceHandle();
|
||||||
std::pair<VkQueryPool, uint32_t> query = m_query->getQuery();
|
std::pair<VkQueryPool, uint32_t> query = m_query->getQuery();
|
||||||
@ -372,6 +377,9 @@ namespace dxvk::hud {
|
|||||||
renderer.drawTextIndirect(ctx, key, drawParamBuffer,
|
renderer.drawTextIndirect(ctx, key, drawParamBuffer,
|
||||||
drawInfoBuffer, textBufferView, 2u);
|
drawInfoBuffer, textBufferView, 2u);
|
||||||
|
|
||||||
|
if (unlikely(m_device->isDebugEnabled()))
|
||||||
|
ctx.cmd->cmdEndDebugUtilsLabel(DxvkCmdBuffer::InitBuffer);
|
||||||
|
|
||||||
// Make sure GPU resources are being kept alive as necessary
|
// Make sure GPU resources are being kept alive as necessary
|
||||||
ctx.cmd->track(m_gpuBuffer, DxvkAccess::Write);
|
ctx.cmd->track(m_gpuBuffer, DxvkAccess::Write);
|
||||||
ctx.cmd->track(m_query);
|
ctx.cmd->track(m_query);
|
||||||
|
@ -59,6 +59,11 @@ namespace dxvk::hud {
|
|||||||
const Rc<DxvkImageView>& dstView,
|
const Rc<DxvkImageView>& dstView,
|
||||||
VkColorSpaceKHR dstColorSpace,
|
VkColorSpaceKHR dstColorSpace,
|
||||||
const HudOptions& options) {
|
const HudOptions& options) {
|
||||||
|
if (unlikely(m_device->isDebugEnabled())) {
|
||||||
|
ctx.cmd->cmdInsertDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer,
|
||||||
|
vk::makeLabel(0xf0c0dc, "HUD"));
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_fontTextureView) {
|
if (!m_fontTextureView) {
|
||||||
createFontResources();
|
createFontResources();
|
||||||
uploadFontResources(ctx);
|
uploadFontResources(ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user