From bb5f09fa8caa3a6314da5fa5cb743e35778ed7f6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 7 Apr 2019 12:12:18 -0700 Subject: Added DRAW_FLAG_VERIFY_DRAW_ATTRIBS, DRAW_FLAG_VERIFY_RENDER_TARGETS, and DRAW_FLAG_VERIFY_ALL flags (updated API Version to 240022) --- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 20522acb..384a342d 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -391,8 +391,11 @@ namespace Diligent void DeviceContextVkImpl::Draw( DrawAttribs& drawAttribs ) { #ifdef DEVELOPMENT - if (!DvpVerifyDrawArguments(drawAttribs)) + if ((drawAttribs.Flags & DRAW_FLAG_VERIFY_DRAW_ATTRIBS) != 0 && !DvpVerifyDrawArguments(drawAttribs)) return; + + if ((drawAttribs.Flags & DRAW_FLAG_VERIFY_RENDER_TARGETS) != 0) + DvpVerifyRenderTargets(); #endif EnsureVkCmdBuffer(); -- cgit v1.2.3