mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-23 09:48:41 +00:00
normalize common filenames in VideoBackends/D3D12
This commit is contained in:
parent
a0aeb5b0b9
commit
527b5a9761
28 changed files with 119 additions and 119 deletions
41
Source/Core/VideoBackends/D3D12/DX12Pipeline.h
Normal file
41
Source/Core/VideoBackends/D3D12/DX12Pipeline.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
// Copyright 2019 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <d3d12.h>
|
||||
#include <memory>
|
||||
|
||||
#include "VideoCommon/AbstractPipeline.h"
|
||||
|
||||
namespace DX12
|
||||
{
|
||||
class DXPipeline final : public AbstractPipeline
|
||||
{
|
||||
public:
|
||||
DXPipeline(ID3D12PipelineState* pipeline, ID3D12RootSignature* root_signature,
|
||||
AbstractPipelineUsage usage, D3D12_PRIMITIVE_TOPOLOGY primitive_topology,
|
||||
bool use_integer_rtv);
|
||||
~DXPipeline() override;
|
||||
|
||||
static std::unique_ptr<DXPipeline> Create(const AbstractPipelineConfig& config,
|
||||
const void* cache_data, size_t cache_data_size);
|
||||
|
||||
ID3D12PipelineState* GetPipeline() const { return m_pipeline; }
|
||||
ID3D12RootSignature* GetRootSignature() const { return m_root_signature; }
|
||||
AbstractPipelineUsage GetUsage() const { return m_usage; }
|
||||
D3D12_PRIMITIVE_TOPOLOGY GetPrimitiveTopology() const { return m_primitive_topology; }
|
||||
bool UseIntegerRTV() const { return m_use_integer_rtv; }
|
||||
|
||||
CacheData GetCacheData() const override;
|
||||
|
||||
private:
|
||||
ID3D12PipelineState* m_pipeline;
|
||||
ID3D12RootSignature* m_root_signature;
|
||||
AbstractPipelineUsage m_usage;
|
||||
D3D12_PRIMITIVE_TOPOLOGY m_primitive_topology;
|
||||
bool m_use_integer_rtv;
|
||||
};
|
||||
|
||||
} // namespace DX12
|
Loading…
Add table
Add a link
Reference in a new issue