Cleanup renderer code
This commit is contained in:
@@ -100,18 +100,16 @@ public:
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets DX12 device
|
||||
/// Gets DX12 device.
|
||||
/// </summary>
|
||||
/// <returns>DirectX 12 device</returns>
|
||||
FORCE_INLINE ID3D12Device* GetDevice() const
|
||||
{
|
||||
return _device;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets DXGI factory
|
||||
/// Gets DXGI factory.
|
||||
/// </summary>
|
||||
/// <returns>DXGI factory object</returns>
|
||||
FORCE_INLINE IDXGIFactory4* GetDXGIFactory() const
|
||||
{
|
||||
return _factoryDXGI;
|
||||
@@ -120,28 +118,24 @@ public:
|
||||
/// <summary>
|
||||
/// Gets DirectX 12 command list object
|
||||
/// </summary>
|
||||
/// <returns>Command list object (DirectX 12)</returns>
|
||||
ID3D12GraphicsCommandList* GetCommandList() const;
|
||||
|
||||
/// <summary>
|
||||
/// Gets command queue
|
||||
/// Gets command queue.
|
||||
/// </summary>
|
||||
/// <returns>Command queue</returns>
|
||||
FORCE_INLINE CommandQueueDX12* GetCommandQueue() const
|
||||
{
|
||||
return _commandQueue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets DirectX 12 command queue object
|
||||
/// Gets DirectX 12 command queue object.
|
||||
/// </summary>
|
||||
/// <returns>Command queue object (DirectX 12)</returns>
|
||||
ID3D12CommandQueue* GetCommandQueueDX12() const;
|
||||
|
||||
/// <summary>
|
||||
/// Gets root signature of the graphics pipeline
|
||||
/// Gets root signature of the graphics pipeline.
|
||||
/// </summary>
|
||||
/// <returns>Root signature</returns>
|
||||
FORCE_INLINE ID3D12RootSignature* GetRootSignature() const
|
||||
{
|
||||
return _rootSignature;
|
||||
@@ -150,7 +144,6 @@ public:
|
||||
/// <summary>
|
||||
/// Gets main commands context (for DirectX 12)
|
||||
/// </summary>
|
||||
/// <returns>Main context</returns>
|
||||
FORCE_INLINE GPUContextDX12* GetMainContextDX12() const
|
||||
{
|
||||
return _mainContext;
|
||||
@@ -171,9 +164,7 @@ public:
|
||||
static FORCE_INLINE uint32 GetMaxMSAAQuality(uint32 sampleCount)
|
||||
{
|
||||
if (sampleCount <= 8)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return 0xffffffff;
|
||||
}
|
||||
|
||||
@@ -196,12 +187,10 @@ public:
|
||||
{
|
||||
return reinterpret_cast<GPUContext*>(_mainContext);
|
||||
}
|
||||
|
||||
void* GetNativePtr() const override
|
||||
{
|
||||
return _device;
|
||||
}
|
||||
|
||||
bool Init() override;
|
||||
void DrawBegin() override;
|
||||
void RenderEnd() override;
|
||||
|
||||
Reference in New Issue
Block a user