mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 18:59:19 +00:00
D3D11: Use ComPtr smart pointer where possible
This commit is contained in:
parent
3d8014beb5
commit
1151a1238f
16 changed files with 146 additions and 235 deletions
|
@ -3,9 +3,9 @@
|
|||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
#include <d3d11.h>
|
||||
#include <memory>
|
||||
|
||||
#include "VideoBackends/D3D/D3DBase.h"
|
||||
#include "VideoBackends/D3DCommon/Shader.h"
|
||||
|
||||
namespace DX11
|
||||
|
@ -26,7 +26,7 @@ public:
|
|||
static std::unique_ptr<DXShader> CreateFromBytecode(ShaderStage stage, BinaryData bytecode);
|
||||
|
||||
private:
|
||||
ID3D11DeviceChild* m_shader;
|
||||
ComPtr<ID3D11DeviceChild> m_shader;
|
||||
};
|
||||
|
||||
} // namespace DX11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue