mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-23 19:54:16 +01:00
[dxvk] Change debug color for pipelines with side effects
This commit is contained in:
parent
e76c71aad0
commit
6ad5ee34e3
@ -5769,8 +5769,10 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(m_features.test(DxvkContextFeature::DebugUtils))) {
|
if (unlikely(m_features.test(DxvkContextFeature::DebugUtils))) {
|
||||||
|
uint32_t color = getGraphicsPipelineDebugColor();
|
||||||
|
|
||||||
m_cmd->cmdInsertDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer,
|
m_cmd->cmdInsertDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer,
|
||||||
vk::makeLabel(0xa2dcf0, m_state.gp.pipeline->debugName()));
|
vk::makeLabel(color, m_state.gp.pipeline->debugName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_flags.clr(DxvkContextFlag::GpDirtyPipelineState);
|
m_flags.clr(DxvkContextFlag::GpDirtyPipelineState);
|
||||||
@ -5778,6 +5780,17 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uint32_t DxvkContext::getGraphicsPipelineDebugColor() const {
|
||||||
|
if (m_state.gp.flags.test(DxvkGraphicsPipelineFlag::HasStorageDescriptors))
|
||||||
|
return 0xf0a2dc;
|
||||||
|
|
||||||
|
if (m_state.gp.flags.test(DxvkGraphicsPipelineFlag::HasTransformFeedback))
|
||||||
|
return 0xa2f0dc;
|
||||||
|
|
||||||
|
return 0xa2dcf0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<VkPipelineBindPoint BindPoint>
|
template<VkPipelineBindPoint BindPoint>
|
||||||
void DxvkContext::resetSpecConstants(
|
void DxvkContext::resetSpecConstants(
|
||||||
uint32_t newMask) {
|
uint32_t newMask) {
|
||||||
|
@ -1693,6 +1693,8 @@ namespace dxvk {
|
|||||||
bool updateGraphicsPipeline();
|
bool updateGraphicsPipeline();
|
||||||
bool updateGraphicsPipelineState(DxvkGlobalPipelineBarrier srcBarrier);
|
bool updateGraphicsPipelineState(DxvkGlobalPipelineBarrier srcBarrier);
|
||||||
|
|
||||||
|
uint32_t getGraphicsPipelineDebugColor() const;
|
||||||
|
|
||||||
template<VkPipelineBindPoint BindPoint>
|
template<VkPipelineBindPoint BindPoint>
|
||||||
void resetSpecConstants(
|
void resetSpecConstants(
|
||||||
uint32_t newMask);
|
uint32_t newMask);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user