layers: Add memory management to DrawState
Added code in DrawState to free memory allocations
Updated DrawState Layout to save full CreateInfo tree
diff --git a/layers/draw_state.h b/layers/draw_state.h
index c247b95..26f5e04 100644
--- a/layers/draw_state.h
+++ b/layers/draw_state.h
@@ -112,6 +112,7 @@
XGL_DESCRIPTOR_SET_LAYOUT layout;
XGL_FLAGS stageFlags;
uint32_t shaderStageBindPoints[XGL_NUM_SHADER_STAGE];
+ XGL_DESCRIPTOR_TYPE* pTypes; // Dynamic array that will be created to verify descriptor types
const XGL_DESCRIPTOR_SET_LAYOUT_CREATE_INFO* pCreateInfoList;
uint32_t startIndex; // 1st index of this layout
uint32_t endIndex; // last index of this layout