Cleanup some GPU code
This commit is contained in:
@@ -345,7 +345,7 @@ bool GPUDeviceDX11::Init()
|
||||
limits.MaximumTexture2DSize = D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION;
|
||||
limits.MaximumTexture2DArraySize = D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION;
|
||||
limits.MaximumTexture3DSize = D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION;
|
||||
limits.MaximumTextureCubeSize = D3D11_REQ_TEXTURECUBE_DIMENSION;
|
||||
limits.MaximumTextureCubeSize = D3D10_REQ_TEXTURECUBE_DIMENSION;
|
||||
}
|
||||
|
||||
for (int32 i = 0; i < static_cast<int32>(PixelFormat::MAX); i++)
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -327,7 +327,6 @@ bool GPUDeviceDX12::Init()
|
||||
LOG(Info, "Resource Binding Tier: {0}", options.ResourceBindingTier);
|
||||
LOG(Info, "Conservative Rasterization Tier: {0}", options.ConservativeRasterizationTier);
|
||||
LOG(Info, "Resource Heap Tier: {0}", options.ResourceHeapTier);
|
||||
LOG(Info, "ROVs Supported: {0}", options.ROVsSupported != 0);
|
||||
|
||||
// Init device limits
|
||||
{
|
||||
|
||||
@@ -60,20 +60,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="GPUDeviceDX12"/> class.
|
||||
/// </summary>
|
||||
/// <param name="dxgiFactory">The DXGI factory handle.</param>
|
||||
/// <param name="adapter">The GPU device adapter.</param>
|
||||
GPUDeviceDX12(IDXGIFactory4* dxgiFactory, GPUAdapterDX* adapter);
|
||||
|
||||
/// <summary>
|
||||
/// Finalizes an instance of the <see cref="GPUDeviceDX12"/> class.
|
||||
/// </summary>
|
||||
~GPUDeviceDX12();
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user