mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Use ShaderDebugData enum when creating Vk Shader Debug Readback Buffer
ShaderDebugData::MAX_QUEUED_OPS instead of hard coded 128
This commit is contained in:
@@ -5730,7 +5730,7 @@ void ShaderDebugData::Init(WrappedVulkan *driver, VkDescriptorPool descriptorPoo
|
||||
GPUBuffer::eGPUBufferGPULocal | GPUBuffer::eGPUBufferSSBO);
|
||||
|
||||
// don't need to ring this, as we hard-sync for readback anyway
|
||||
uint32_t maxQueuedResults = 128;
|
||||
uint32_t maxQueuedResults = ShaderDebugData::MAX_QUEUED_OPS;
|
||||
ReadbackBuffer.Create(driver, driver->GetDev(), resultMaxElementSize * maxQueuedResults, 1,
|
||||
GPUBuffer::eGPUBufferReadback);
|
||||
ConstantsBuffer.Create(driver, driver->GetDev(), 1024, maxQueuedResults, 0);
|
||||
|
||||
Reference in New Issue
Block a user