diff options
| author | Cort Stratton <cort@google.com> | 2018-05-04 14:35:18 -0400 |
|---|---|---|
| committer | Cort <1944792+cdwfs@users.noreply.github.com> | 2018-05-11 14:17:21 -0400 |
| commit | a02bd090ecc3a36283c615420fc2e63691253f95 (patch) | |
| tree | 4a10629d4631dadff25f31a9f9066804725d7425 | |
| parent | 4be501f933856f43e8445619f894d1a85892333c (diff) | |
| download | usermoji-a02bd090ecc3a36283c615420fc2e63691253f95.tar.xz | |
layers: Add GetApiVersion() helper
| -rw-r--r-- | layers/core_validation.cpp | 2 | ||||
| -rw-r--r-- | layers/core_validation_types.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 6654045a..bb463c40 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4753,6 +4753,8 @@ const VkPhysicalDeviceDescriptorIndexingFeaturesEXT *GetEnabledDescriptorIndexin const DeviceExtensions *GetDeviceExtensions(const layer_data *device_data) { return &device_data->extensions; } +uint32_t GetApiVersion(const layer_data *device_data) { return device_data->api_version; } + VKAPI_ATTR VkResult VKAPI_CALL CreateImage(VkDevice device, const VkImageCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkImage *pImage) { VkResult result = VK_ERROR_VALIDATION_FAILED_EXT; diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index 58231daf..f31cae0d 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -947,6 +947,7 @@ std::unordered_map<VkBuffer, std::unique_ptr<BUFFER_STATE>> *GetBufferMap(layer_ std::unordered_map<VkBufferView, std::unique_ptr<BUFFER_VIEW_STATE>> *GetBufferViewMap(layer_data *device_data); std::unordered_map<VkImageView, std::unique_ptr<IMAGE_VIEW_STATE>> *GetImageViewMap(layer_data *device_data); const DeviceExtensions *GetDeviceExtensions(const layer_data *); +uint32_t GetApiVersion(const layer_data *); } // namespace core_validation #endif // CORE_VALIDATION_TYPES_H_ |
