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.
o3de/Gems/Atom/RHI/Vulkan/Code/Source/RHI.Builders/ShaderPlatformInterfaceSyst...

43 lines
1.3 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.Edit/ShaderPlatformInterfaceBus.h>
#include <AzCore/Component/Component.h>
#include <AzCore/std/smart_ptr/unique_ptr.h>
#include <RHI.Builders/ShaderPlatformInterface.h>
namespace AZ
{
namespace Vulkan
{
class ShaderPlatformInterfaceSystemComponent final
: public AZ::Component
{
public:
AZ_COMPONENT(ShaderPlatformInterfaceSystemComponent, "{9514260A-9E85-42AD-8EF7-6A33037653AC}");
static void Reflect(AZ::ReflectContext* context);
ShaderPlatformInterfaceSystemComponent() = default;
~ShaderPlatformInterfaceSystemComponent() override = default;
static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
// AZ::Component
void Activate() override;
void Deactivate() override;
private:
ShaderPlatformInterfaceSystemComponent(const ShaderPlatformInterfaceSystemComponent&) = delete;
AZStd::unique_ptr<ShaderPlatformInterface> m_shaderPlatformInterface;
};
} // namespace Vulkan
} // namespace AZ