chromium/third_party/vulkan-validation-layers/src/layers/state_tracker/image_layout_map.h

/* Copyright (c) 2019-2024 The Khronos Group Inc.
 * Copyright (c) 2019-2024 Valve Corporation
 * Copyright (c) 2019-2024 LunarG, Inc.
 * Copyright (C) 2019-2024 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * John Zulauf <[email protected]>
 *
 */
#pragma once

#include <functional>

#include "containers/range_vector.h"
#include "containers/subresource_adapter.h"
#include "utils/vk_layer_utils.h"
#ifndef SPARSE_CONTAINER_UNIT_TEST
#include "vulkan/vulkan.h"
#include "error_message/logging.h"

namespace vvl {
class Image;
class ImageView;
class CommandBuffer;
}  // namespace vvl
#endif

namespace image_layout_map {
const static VkImageLayout kInvalidLayout =;

// Common types for this namespace
IndexType;
IndexRange;
Encoder;
RangeGenerator;

struct InitialLayoutState {};

class ImageSubresourceLayoutMap {};
}  // namespace image_layout_map

class GlobalImageLayoutRangeMap : public subresource_adapter::BothRangeMap<VkImageLayout, 16> {};