ComputeSystemMTLImpl.h 636 B

12345678910111213141516171819202122232425262728
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2025 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #ifdef JPH_USE_MTL
  6. #include <Jolt/Compute/MTL/ComputeSystemMTL.h>
  7. JPH_NAMESPACE_BEGIN
  8. /// Interface to run a workload on the GPU that fully initializes Metal.
  9. class JPH_EXPORT ComputeSystemMTLImpl : public ComputeSystemMTL
  10. {
  11. public:
  12. JPH_DECLARE_RTTI_VIRTUAL(JPH_EXPORT, ComputeSystemMTLImpl)
  13. /// Destructor
  14. virtual ~ComputeSystemMTLImpl() override;
  15. /// Initialize / shutdown the compute system
  16. bool Initialize();
  17. };
  18. JPH_NAMESPACE_END
  19. #endif // JPH_USE_MTL