layers: Add enabled_features accessor function
authorMark Lobodzinski <mark@lunarg.com>
Mon, 13 Mar 2017 15:25:44 +0000 (09:25 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 13 Mar 2017 22:02:59 +0000 (16:02 -0600)
Change-Id: I509c06794b9301c3b0dcc3ed5ad6e688eac6194d

layers/core_validation.cpp
layers/core_validation_types.h

index e5765aa..aa5f996 100644 (file)
@@ -6184,6 +6184,10 @@ const PHYS_DEV_PROPERTIES_NODE *GetPhysDevProperties(const layer_data *device_da
     return &device_data->phys_dev_properties;
 }
 
+const VkPhysicalDeviceFeatures *GetEnabledFeatures(const layer_data *device_data) {
+    return &device_data->enabled_features;
+}
+
 VKAPI_ATTR VkResult VKAPI_CALL CreateImage(VkDevice device, const VkImageCreateInfo *pCreateInfo,
                                            const VkAllocationCallbacks *pAllocator, VkImage *pImage) {
     VkResult result = VK_ERROR_VALIDATION_FAILED_EXT;
index 4909d9e..84a6438 100644 (file)
@@ -767,6 +767,7 @@ RENDER_PASS_STATE *GetRenderPassState(layer_data const *my_data, VkRenderPass re
 FRAMEBUFFER_STATE *GetFramebufferState(const layer_data *my_data, VkFramebuffer framebuffer);
 COMMAND_POOL_NODE *GetCommandPoolNode(layer_data *dev_data, VkCommandPool pool);
 const PHYS_DEV_PROPERTIES_NODE *GetPhysDevProperties(const layer_data *device_data);
+const VkPhysicalDeviceFeatures *GetEnabledFeatures(const layer_data *device_data);
 
 void invalidateCommandBuffers(const layer_data *, std::unordered_set<GLOBAL_CB_NODE *> const &, VK_OBJECT);
 bool ValidateMemoryIsBoundToBuffer(const layer_data *, const BUFFER_STATE *, const char *, UNIQUE_VALIDATION_ERROR_CODE);