ComputeSystemDX12Impl.h 794 B

123456789101112131415161718192021222324252627282930313233
  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_DX12
  6. #include <Jolt/Compute/DX12/ComputeSystemDX12.h>
  7. JPH_NAMESPACE_BEGIN
  8. /// Implementation of ComputeSystemDX12 that fully initializes DirectX 12
  9. class JPH_EXPORT ComputeSystemDX12Impl : public ComputeSystemDX12
  10. {
  11. public:
  12. JPH_DECLARE_RTTI_VIRTUAL(JPH_EXPORT, ComputeSystemDX12Impl)
  13. /// Destructor
  14. virtual ~ComputeSystemDX12Impl() override;
  15. /// Initialize the compute system
  16. bool Initialize(ComputeSystemResult &outResult);
  17. IDXGIFactory4 * GetDXGIFactory() const { return mDXGIFactory.Get(); }
  18. private:
  19. ComPtr<IDXGIFactory4> mDXGIFactory;
  20. };
  21. JPH_NAMESPACE_END
  22. #endif // JPH_USE_DX12