Files
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

56 lines
1.6 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <Atom/RHI/ImagePool.h>
#include <Atom/RHI/ImageView.h>
#include <AzCore/Memory/SystemAllocator.h>
namespace UnitTest
{
class ImageView
: public AZ::RHI::ImageView
{
public:
AZ_CLASS_ALLOCATOR(ImageView, AZ::SystemAllocator, 0);
private:
AZ::RHI::ResultCode InitInternal(AZ::RHI::Device&, const AZ::RHI::Resource&) override;
AZ::RHI::ResultCode InvalidateInternal() override;
void ShutdownInternal() override;
};
class Image
: public AZ::RHI::Image
{
public:
AZ_CLASS_ALLOCATOR(Image, AZ::SystemAllocator, 0);
private:
void GetSubresourceLayoutsInternal(const AZ::RHI::ImageSubresourceRange&, AZ::RHI::ImageSubresourceLayoutPlaced*, size_t*) const override {}
};
class ImagePool
: public AZ::RHI::ImagePool
{
public:
AZ_CLASS_ALLOCATOR(ImagePool, AZ::SystemAllocator, 0);
private:
AZ::RHI::ResultCode InitInternal(AZ::RHI::Device&, const AZ::RHI::ImagePoolDescriptor&) override;
void ShutdownInternal() override;
AZ::RHI::ResultCode InitImageInternal(const AZ::RHI::ImageInitRequest& request) override;
AZ::RHI::ResultCode UpdateImageContentsInternal(const AZ::RHI::ImageUpdateRequest&) override { return AZ::RHI::ResultCode::Success; }
void ShutdownResourceInternal(AZ::RHI::Resource& image) override;
};
}