You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.6 KiB
C++
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;
|
|
};
|
|
}
|