Jeremy Gebben | b6c1813 | 2021-03-17 17:00:20 -0600 | [diff] [blame] | 1 | /* Copyright (c) 2015-2021 The Khronos Group Inc. |
| 2 | * Copyright (c) 2015-2021 Valve Corporation |
| 3 | * Copyright (c) 2015-2021 LunarG, Inc. |
| 4 | * Copyright (C) 2015-2021 Google Inc. |
Mark Lobodzinski | d42e4d2 | 2017-01-17 14:14:22 -0700 | [diff] [blame] | 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | * |
| 18 | * Mark Lobodzinski <mark@lunarg.com> |
Dave Houlton | 0d4ad6f | 2018-09-05 14:53:34 -0600 | [diff] [blame] | 19 | * Dave Houlton <daveh@lunarg.com> |
Mark Lobodzinski | d42e4d2 | 2017-01-17 14:14:22 -0700 | [diff] [blame] | 20 | */ |
| 21 | #ifndef CORE_VALIDATION_BUFFER_VALIDATION_H_ |
| 22 | #define CORE_VALIDATION_BUFFER_VALIDATION_H_ |
| 23 | |
Mark Lobodzinski | d42e4d2 | 2017-01-17 14:14:22 -0700 | [diff] [blame] | 24 | #include "vulkan/vk_layer.h" |
Mark Lobodzinski | ab9ea3e | 2017-02-15 12:59:00 -0700 | [diff] [blame] | 25 | #include <limits.h> |
Mark Lobodzinski | d42e4d2 | 2017-01-17 14:14:22 -0700 | [diff] [blame] | 26 | #include <memory> |
Mark Lobodzinski | d42e4d2 | 2017-01-17 14:14:22 -0700 | [diff] [blame] | 27 | #include <vector> |
Mark Lobodzinski | 9ef5d56 | 2017-01-27 12:28:30 -0700 | [diff] [blame] | 28 | #include <utility> |
Mark Lobodzinski | 3c0f636 | 2017-02-01 13:35:48 -0700 | [diff] [blame] | 29 | #include <algorithm> |
Mark Lobodzinski | ab9ea3e | 2017-02-15 12:59:00 -0700 | [diff] [blame] | 30 | #include <bitset> |
Mark Lobodzinski | 3c0f636 | 2017-02-01 13:35:48 -0700 | [diff] [blame] | 31 | |
Dave Houlton | d961131 | 2018-11-19 17:03:36 -0700 | [diff] [blame] | 32 | uint32_t FullMipChainLevels(uint32_t height, uint32_t width = 1, uint32_t depth = 1); |
| 33 | uint32_t FullMipChainLevels(VkExtent3D); |
| 34 | uint32_t FullMipChainLevels(VkExtent2D); |
| 35 | |
Jeremy Gebben | b6c1813 | 2021-03-17 17:00:20 -0600 | [diff] [blame] | 36 | GlobalImageLayoutRangeMap *GetLayoutRangeMap(GlobalImageLayoutMap &map, const IMAGE_STATE &image_state); |
Jeremy Gebben | 6335df6 | 2021-11-01 10:50:13 -0600 | [diff] [blame] | 37 | const GlobalImageLayoutRangeMap *GetLayoutRangeMap(const GlobalImageLayoutMap &map, const IMAGE_STATE &image); |
Mark Lobodzinski | d81d101 | 2017-02-01 09:03:06 -0700 | [diff] [blame] | 38 | |
Mark Lobodzinski | 64318ba | 2017-01-26 13:34:13 -0700 | [diff] [blame] | 39 | #endif // CORE_VALIDATION_BUFFER_VALIDATION_H_ |