DiffuseProbeGridSystemComponent.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzCore/Asset/AssetCommon.h>
  11. #include <Atom/RPI.Public/Pass/PassSystemInterface.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. class DiffuseProbeGridSystemComponent final
  17. : public Component
  18. {
  19. public:
  20. AZ_COMPONENT(DiffuseProbeGridSystemComponent, "{8635A450-FBEC-49E2-A5E5-D8429352530B}");
  21. DiffuseProbeGridSystemComponent() = default;
  22. ~DiffuseProbeGridSystemComponent() = default;
  23. static void Reflect(ReflectContext* context);
  24. static void GetProvidedServices(ComponentDescriptor::DependencyArrayType& provided);
  25. static void GetIncompatibleServices(ComponentDescriptor::DependencyArrayType& incompatible);
  26. static void GetRequiredServices(ComponentDescriptor::DependencyArrayType& required);
  27. private:
  28. //! Loads the pass templates mapping file
  29. void LoadPassTemplateMappings();
  30. ////////////////////////////////////////////////////////////////////////
  31. // Component interface implementation
  32. void Activate() override;
  33. void Deactivate() override;
  34. ////////////////////////////////////////////////////////////////////////
  35. //! Used for loading the pass templates of the hair gem.
  36. RPI::PassSystemInterface::OnReadyLoadTemplatesEvent::Handler m_loadTemplatesHandler;
  37. };
  38. }
  39. }