From 5c547657634969ca4f39739c723a60f35b31f381 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 22 Jun 2015 17:20:50 -0600 Subject: layers: Add DrawState check to verify that Pipeline layout from vkCmdBindDescriptorSets() matches layout from PSO at Draw time. Also fix a bug where PSO status flags were not getting set into Cmd Buffer. --- layers/draw_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/draw_state.h b/layers/draw_state.h index 6ae96d9d..9e7d7f89 100644 --- a/layers/draw_state.h +++ b/layers/draw_state.h @@ -56,8 +56,8 @@ typedef enum _DRAW_STATE_ERROR DRAWSTATE_INDEX_BUFFER_NOT_BOUND, // Draw submitted with no depth-stencil state object bound when depth write enabled DRAWSTATE_PIPELINE_LAYOUT_MISMATCH, // Draw submitted PSO Pipeline layout that doesn't match layout from BindDescriptorSets DRAWSTATE_INVALID_RENDERPASS_CMD, // Invalid cmd submitted while a RenderPass is active - DRAWSTATE_RENDER_CMD_WITHOUT_RENDERPASS, // Rendering cmd submitted without an active RenderPass DRAWSTATE_INVALID_RENDERPASS, // Use of a NULL or otherwise invalid RenderPass object + DRAWSTATE_PIPELINE_LAYOUT_MISMATCH, // Draw submitted PSO Pipeline layout that doesn't match layout from BindDescriptorSets DRAWSTATE_INVALID_EXTENSION, } DRAW_STATE_ERROR; -- cgit v1.2.3