mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-07 07:46:19 +01:00
41 lines
822 B
C
41 lines
822 B
C
|
#pragma once
|
||
|
|
||
|
#include <dxvk_device.h>
|
||
|
|
||
|
#include "d3d11_device_child.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
class D3D11Device;
|
||
|
|
||
|
class D3D11RenderTargetView : public D3D11DeviceChild<ID3D11RenderTargetView> {
|
||
|
|
||
|
public:
|
||
|
|
||
|
D3D11RenderTargetView(
|
||
|
D3D11Device* device,
|
||
|
const D3D11_RENDER_TARGET_VIEW_DESC& desc);
|
||
|
~D3D11RenderTargetView();
|
||
|
|
||
|
HRESULT QueryInterface(
|
||
|
REFIID riid,
|
||
|
void** ppvObject) final;
|
||
|
|
||
|
void GetDevice(
|
||
|
ID3D11Device **ppDevice) final;
|
||
|
|
||
|
void GetResource(
|
||
|
ID3D11Resource **ppResource) final;
|
||
|
|
||
|
void GetDesc(
|
||
|
D3D11_RENDER_TARGET_VIEW_DESC* pDesc) final;
|
||
|
|
||
|
private:
|
||
|
|
||
|
Com<D3D11Device> m_device;
|
||
|
D3D11_RENDER_TARGET_VIEW_DESC m_desc;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|