#include "state_tracker/image_layout_map.h"
#ifndef SPARSE_CONTAINER_UNIT_TEST
#include "state_tracker/image_state.h"
#include "state_tracker/cmd_buffer_state.h"
#endif
namespace image_layout_map {
InitialLayoutStates;
LayoutEntry;
template <typename LayoutsMap>
static bool UpdateLayoutStateImpl(LayoutsMap& layouts, InitialLayoutStates& initial_layout_states, const IndexRange& range,
LayoutEntry& new_entry, const vvl::CommandBuffer& cb_state, const vvl::ImageView* view_state) { … }
InitialLayoutState::InitialLayoutState(const vvl::CommandBuffer& cb_state_, const vvl::ImageView* view_state_)
: … { … }
bool ImageSubresourceLayoutMap::SubresourceLayout::operator==(const ImageSubresourceLayoutMap::SubresourceLayout& rhs) const { … }
ImageSubresourceLayoutMap::ImageSubresourceLayoutMap(const vvl::Image& image_state)
: … { … }
template <typename LayoutMap>
static bool SetSubresourceRangeLayoutImpl(LayoutMap& layouts, InitialLayoutStates& initial_layout_states, RangeGenerator& range_gen,
const vvl::CommandBuffer& cb_state, VkImageLayout layout, VkImageLayout expected_layout) { … }
bool ImageSubresourceLayoutMap::SetSubresourceRangeLayout(const vvl::CommandBuffer& cb_state, const VkImageSubresourceRange& range,
VkImageLayout layout, VkImageLayout expected_layout) { … }
template <typename LayoutMap>
static void SetSubresourceRangeInitialLayoutImpl(LayoutMap& layouts, InitialLayoutStates& initial_layout_states,
RangeGenerator& range_gen, const vvl::CommandBuffer& cb_state,
VkImageLayout layout, const vvl::ImageView* view_state) { … }
void ImageSubresourceLayoutMap::SetSubresourceRangeInitialLayout(const vvl::CommandBuffer& cb_state,
const VkImageSubresourceRange& range, VkImageLayout layout) { … }
void ImageSubresourceLayoutMap::SetSubresourceRangeInitialLayout(const vvl::CommandBuffer& cb_state, VkImageLayout layout,
const vvl::ImageView& view_state) { … }
uintptr_t ImageSubresourceLayoutMap::CompatibilityKey() const { … }
bool ImageSubresourceLayoutMap::UpdateFrom(const ImageSubresourceLayoutMap& other) { … }
}