Vulkan CP: Override frame traces if renderdoc is attached

This commit is contained in:
Dr. Chat
2016-05-23 13:16:13 -05:00
parent 729152a58b
commit 5f764730ae
3 changed files with 20 additions and 11 deletions

View File

@@ -49,6 +49,7 @@ class VulkanCommandProcessor : public CommandProcessor {
kernel::KernelState* kernel_state);
~VulkanCommandProcessor() override;
virtual void RequestFrameTrace(const std::wstring& root_path) override;
void ClearCaches() override;
RenderCache* render_cache() { return render_cache_.get(); }
@@ -103,6 +104,7 @@ class VulkanCommandProcessor : public CommandProcessor {
// Last copy base address, for debugging only.
uint32_t last_copy_base_ = 0;
bool capturing_ = false;
bool trace_requested_ = false;
std::unique_ptr<BufferCache> buffer_cache_;
std::unique_ptr<PipelineCache> pipeline_cache_;