mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
VideoBackends/D3D11: Simplify vertex attribute code
This commit is contained in:
parent
cc5640245c
commit
f5d11c1e38
2 changed files with 22 additions and 56 deletions
|
@ -12,6 +12,8 @@
|
|||
#include "VideoCommon/NativeVertexFormat.h"
|
||||
#include "VideoCommon/VertexManagerBase.h"
|
||||
|
||||
enum class ShaderAttrib : u32;
|
||||
|
||||
namespace DX11
|
||||
{
|
||||
class D3DVertexFormat : public NativeVertexFormat
|
||||
|
@ -22,6 +24,8 @@ public:
|
|||
ID3D11InputLayout* GetInputLayout(const void* vs_bytecode, size_t vs_bytecode_size);
|
||||
|
||||
private:
|
||||
void AddAttribute(const AttributeFormat& format, ShaderAttrib semantic_index);
|
||||
|
||||
std::array<D3D11_INPUT_ELEMENT_DESC, 32> m_elems{};
|
||||
UINT m_num_elems = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue