chromium/third_party/vulkan-validation-layers/src/layers/gpu/resources/gpuav_subclasses.cpp

/* Copyright (c) 2018-2024 The Khronos Group Inc.
 * Copyright (c) 2018-2024 Valve Corporation
 * Copyright (c) 2018-2024 LunarG, 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.
 */

#include "gpu/resources/gpuav_subclasses.h"

#include "gpu/resources/gpu_shader_resources.h"
#include "gpu/core/gpuav.h"
#include "gpu/core/gpuav_constants.h"
#include "gpu/descriptor_validation/gpuav_image_layout.h"
#include "gpu/descriptor_validation/gpuav_descriptor_validation.h"
#include "gpu/shaders/gpu_error_header.h"

namespace gpuav {

Buffer::Buffer(ValidationStateTracker &dev_data, VkBuffer buff, const VkBufferCreateInfo *pCreateInfo, DescriptorHeap &desc_heap_)
    :{}

void Buffer::Destroy() {}

void Buffer::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

BufferView::BufferView(const std::shared_ptr<vvl::Buffer> &bf, VkBufferView bv, const VkBufferViewCreateInfo *ci,
                       VkFormatFeatureFlags2KHR buf_ff, DescriptorHeap &desc_heap_)
    :{}

void BufferView::Destroy() {}

void BufferView::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

ImageView::ImageView(const std::shared_ptr<vvl::Image> &image_state, VkImageView iv, const VkImageViewCreateInfo *ci,
                     VkFormatFeatureFlags2KHR ff, const VkFilterCubicImageViewImageFormatPropertiesEXT &cubic_props,
                     DescriptorHeap &desc_heap_)
    :{}

void ImageView::Destroy() {}

void ImageView::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

Sampler::Sampler(const VkSampler s, const VkSamplerCreateInfo *pci, DescriptorHeap &desc_heap_)
    :{}

void Sampler::Destroy() {}

void Sampler::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

AccelerationStructureKHR::AccelerationStructureKHR(VkAccelerationStructureKHR as, const VkAccelerationStructureCreateInfoKHR *ci,
                                                   std::shared_ptr<vvl::Buffer> &&buf_state, DescriptorHeap &desc_heap_)
    :{}

void AccelerationStructureKHR::Destroy() {}

void AccelerationStructureKHR::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

AccelerationStructureNV::AccelerationStructureNV(VkDevice device, VkAccelerationStructureNV as,
                                                 const VkAccelerationStructureCreateInfoNV *ci, DescriptorHeap &desc_heap_)
    :{}

void AccelerationStructureNV::Destroy() {}

void AccelerationStructureNV::NotifyInvalidate(const NodeList &invalid_nodes, bool unlink) {}

CommandBuffer::CommandBuffer(Validator &gpuav, VkCommandBuffer handle, const VkCommandBufferAllocateInfo *pCreateInfo,
                             const vvl::CommandPool *pool)
    :{}

static bool AllocateErrorLogsBuffer(Validator &gpuav, gpu::DeviceMemoryBlock &error_logs_mem, const Location &loc) {}

void CommandBuffer::AllocateResources(const Location &loc) {}

bool CommandBuffer::UpdateBdaRangesBuffer(const Location &loc) {}

VkDeviceSize CommandBuffer::GetBdaRangesBufferByteSize() const {}

CommandBuffer::~CommandBuffer() {}

void CommandBuffer::Destroy() {}

void CommandBuffer::Reset(const Location &loc) {}

void CommandBuffer::ResetCBState() {}

void CommandBuffer::ClearCmdErrorsCountsBuffer(const Location &loc) const {}

bool CommandBuffer::PreProcess(const Location &loc) {}

bool CommandBuffer::NeedsPostProcess() {}

// For the given command buffer, map its debug data buffers and read their contents for analysis.
void CommandBuffer::PostProcess(VkQueue queue, const Location &loc) {}

}  // namespace gpuav