mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Only read printf data if shaders used printf
This commit is contained in:
@@ -1730,7 +1730,7 @@ void VulkanReplay::FetchShaderFeedback(uint32_t eventId)
|
||||
|
||||
uint32_t *printfBuf = (uint32_t *)data.data();
|
||||
uint32_t *printfBufEnd = (uint32_t *)(data.data() + Vulkan_Debug_PrintfBufferSize());
|
||||
if(*printfBuf > 0)
|
||||
if(usesPrintf && *printfBuf > 0)
|
||||
{
|
||||
uint32_t wordsNeeded = *printfBuf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user