2017-12-07 12:45:02 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_device_child.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class D3D11Device;
|
|
|
|
|
|
|
|
class D3D11InputLayout : public D3D11DeviceChild<ID3D11InputLayout> {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11InputLayout(
|
|
|
|
D3D11Device* pDevice,
|
2017-12-08 00:44:58 +01:00
|
|
|
uint32_t numAttributes,
|
|
|
|
const DxvkVertexAttribute* pAttributes,
|
|
|
|
uint32_t numBindings,
|
|
|
|
const DxvkVertexBinding* pBindings);
|
2017-12-07 12:45:02 +01:00
|
|
|
|
|
|
|
~D3D11InputLayout();
|
|
|
|
|
|
|
|
HRESULT QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject) final;
|
|
|
|
|
|
|
|
void GetDevice(
|
|
|
|
ID3D11Device **ppDevice) final;
|
|
|
|
|
2017-12-08 00:44:58 +01:00
|
|
|
void BindToContext(
|
|
|
|
const Rc<DxvkContext>& ctx);
|
2017-12-07 12:45:02 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
D3D11Device* const m_device;
|
2017-12-08 00:44:58 +01:00
|
|
|
|
|
|
|
std::vector<DxvkVertexAttribute> m_attributes;
|
|
|
|
std::vector<DxvkVertexBinding> m_bindings;
|
2017-12-07 12:45:02 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|