Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

794 B
Raw Blame
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2025 Jorrit Rouwe
// SPDX-License-Identifier: MIT

#pragma once

#ifdef JPH_USE_DX12

#include <Jolt/Compute/DX12/ComputeSystemDX12.h>

JPH_NAMESPACE_BEGIN

/// Implementation of ComputeSystemDX12 that fully initializes DirectX 12
class JPH_EXPORT ComputeSystemDX12Impl : public ComputeSystemDX12
{
public:
	JPH_DECLARE_RTTI_VIRTUAL(JPH_EXPORT, ComputeSystemDX12Impl)

	/// Destructor
	virtual 						~ComputeSystemDX12Impl() override;

	/// Initialize the compute system
	bool							Initialize(ComputeSystemResult &outResult);

	IDXGIFactory4 *					GetDXGIFactory() const						{ return mDXGIFactory.Get(); }

private:
	ComPtr<IDXGIFactory4>			mDXGIFactory;
};

JPH_NAMESPACE_END

#endif // JPH_USE_DX12