PassBuilder.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <AssetBuilderSDK/AssetBuilderBusses.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. class PassBuilder final
  15. : public AssetBuilderSDK::AssetBuilderCommandBus::Handler
  16. {
  17. public:
  18. AZ_TYPE_INFO(PassBuilder, "{3F33C35C-607C-4D39-87C4-3614D88A75CD}");
  19. static const char* JobKey;
  20. PassBuilder() = default;
  21. ~PassBuilder();
  22. // Asset Builder Callback Functions
  23. void CreateJobs(const AssetBuilderSDK::CreateJobsRequest& request, AssetBuilderSDK::CreateJobsResponse& response) const;
  24. void ProcessJob(const AssetBuilderSDK::ProcessJobRequest& request, AssetBuilderSDK::ProcessJobResponse& response) const;
  25. // AssetBuilderSDK::AssetBuilderCommandBus interface
  26. void ShutDown() override;
  27. /// Register to builder and listen to builder command
  28. void RegisterBuilder();
  29. private:
  30. bool m_isShuttingDown = false;
  31. };
  32. } // namespace RPI
  33. } // namespace AZ