Cleanup some GPU code

This commit is contained in:
Wojtek Figat
2021-06-28 14:08:44 +02:00
parent ef831b8559
commit 971449bef1
16 changed files with 365 additions and 550 deletions

View File

@@ -46,20 +46,8 @@ private:
public:
// Create new graphics device (returns null if failed)
// @returns Created device or null
static GPUDevice* Create();
/// <summary>
/// Initializes a new instance of the <see cref="GPUDeviceDX11"/> class.
/// </summary>
/// <param name="dxgiFactory">The DXGI factory handle.</param>
/// <param name="adapter">The GPU device adapter.</param>
GPUDeviceDX11(IDXGIFactory* dxgiFactory, GPUAdapterDX* adapter);
/// <summary>
/// Finalizes an instance of the <see cref="GPUDeviceDX11"/> class.
/// </summary>
~GPUDeviceDX11();
public:
@@ -122,9 +110,8 @@ class IGPUResourceDX11
public:
/// <summary>
/// Gets DirectX 11 resource object handle
/// Gets DirectX 11 resource object handle.
/// </summary>
/// <returns>DirectX 11 resource object handle</returns>
virtual ID3D11Resource* GetResource() = 0;
};