2017-10-15 21:38:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <dxvk_device.h>
|
|
|
|
|
|
|
|
#include "d3d11_resource.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class D3D11Device;
|
|
|
|
|
|
|
|
class D3D11Buffer : public D3D11Resource<ID3D11Buffer> {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11Buffer(
|
|
|
|
D3D11Device* device,
|
|
|
|
const D3D11_BUFFER_DESC& desc);
|
|
|
|
~D3D11Buffer();
|
|
|
|
|
|
|
|
HRESULT QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject) final;
|
|
|
|
|
|
|
|
void GetDevice(
|
|
|
|
ID3D11Device **ppDevice) final;
|
|
|
|
|
|
|
|
void GetType(
|
|
|
|
D3D11_RESOURCE_DIMENSION *pResourceDimension) final;
|
|
|
|
|
|
|
|
void GetDesc(
|
2017-11-27 15:51:53 +01:00
|
|
|
D3D11_BUFFER_DESC *pDesc) final;
|
2017-10-15 21:38:09 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2017-11-27 15:51:53 +01:00
|
|
|
Com<D3D11Device> m_device;
|
|
|
|
|
|
|
|
D3D11_BUFFER_DESC m_desc;
|
|
|
|
Rc<DxvkBuffer> m_buffer;
|
2017-10-16 10:37:01 +02:00
|
|
|
|
|
|
|
Rc<DxvkBuffer> createBuffer();
|
2017-10-15 21:38:09 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|