2017-12-07 12:45:02 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_device_child.h"
|
|
|
|
|
2018-08-11 21:38:10 +02:00
|
|
|
#include "../d3d10/d3d10_input_layout.h"
|
|
|
|
|
2017-12-07 12:45:02 +01:00
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class D3D11Device;
|
|
|
|
|
|
|
|
class D3D11InputLayout : public D3D11DeviceChild<ID3D11InputLayout> {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11InputLayout(
|
2018-05-27 01:10:49 +02:00
|
|
|
D3D11Device* pDevice,
|
|
|
|
uint32_t numAttributes,
|
|
|
|
const DxvkVertexAttribute* pAttributes,
|
|
|
|
uint32_t numBindings,
|
|
|
|
const DxvkVertexBinding* pBindings);
|
2017-12-07 12:45:02 +01:00
|
|
|
|
|
|
|
~D3D11InputLayout();
|
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
2018-05-27 01:10:49 +02:00
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject) final;
|
2017-12-07 12:45:02 +01:00
|
|
|
|
2017-12-12 12:50:52 +01:00
|
|
|
void STDMETHODCALLTYPE GetDevice(
|
2018-05-27 01:10:49 +02:00
|
|
|
ID3D11Device** ppDevice) final;
|
2017-12-07 12:45:02 +01:00
|
|
|
|
2017-12-08 00:44:58 +01:00
|
|
|
void BindToContext(
|
2018-05-27 01:10:49 +02:00
|
|
|
const Rc<DxvkContext>& ctx);
|
|
|
|
|
|
|
|
bool Compare(
|
|
|
|
const D3D11InputLayout* pOther) const;
|
2017-12-07 12:45:02 +01:00
|
|
|
|
2018-08-11 21:38:10 +02:00
|
|
|
D3D10InputLayout* GetD3D10Iface() {
|
|
|
|
return &m_d3d10;
|
|
|
|
}
|
|
|
|
|
2017-12-07 12:45:02 +01:00
|
|
|
private:
|
|
|
|
|
2017-12-09 15:57:05 +01:00
|
|
|
Com<D3D11Device> m_device;
|
2017-12-08 00:44:58 +01:00
|
|
|
|
|
|
|
std::vector<DxvkVertexAttribute> m_attributes;
|
|
|
|
std::vector<DxvkVertexBinding> m_bindings;
|
2018-08-11 21:38:10 +02:00
|
|
|
|
|
|
|
D3D10InputLayout m_d3d10;
|
2017-12-07 12:45:02 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|