mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 22:10:56 +00:00
Prefer D3D11VA in non-FSE modes for improved performance
This commit is contained in:
1 parent
feaae7b684
commit
bf4332b9e7
5 files changed
+55
-11
No files matched your search
@@ -13,7 +13,7 @@ extern "C" {
|
||||
class D3D11VARenderer : public IFFmpegRenderer
|
||||
{
|
||||
public:
|
||||
D3D11VARenderer();
|
||||
D3D11VARenderer(int decoderSelectionPass);
|
||||
virtual ~D3D11VARenderer() override;
|
||||
virtual bool initialize(PDECODER_PARAMETERS params) override;
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary**) override;
|
||||
@@ -36,6 +36,8 @@ private:
|
||||
bool checkDecoderSupport(IDXGIAdapter* adapter);
|
||||
bool createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound = nullptr);
|
||||
|
||||
int m_DecoderSelectionPass;
|
||||
|
||||
IDXGIFactory5* m_Factory;
|
||||
ID3D11Device* m_Device;
|
||||
IDXGISwapChain4* m_SwapChain;
|
||||
|
||||
Reference in new issue
Block a user