NativeVertexFormat: Use in-class initialization

This commit is contained in:
Lioncash
2016-02-15 23:11:43 -05:00
parent 2c5fcad5f5
commit 69c82f32ff
3 changed files with 16 additions and 15 deletions

View File

@ -12,11 +12,6 @@ namespace DX12
class D3DVertexFormat final : public NativeVertexFormat
{
std::array<D3D12_INPUT_ELEMENT_DESC, 15> m_elems;
UINT m_num_elems;
D3D12_INPUT_LAYOUT_DESC m_layout12;
public:
D3DVertexFormat(const PortableVertexDeclaration& vtx_decl);
~D3DVertexFormat();
@ -27,5 +22,10 @@ public:
private:
void AddInputElementDescFromAttributeFormatIfValid(const AttributeFormat* format, const char* semantic_name, unsigned int semantic_index);
std::array<D3D12_INPUT_ELEMENT_DESC, 15> m_elems{};
UINT m_num_elems = 0;
D3D12_INPUT_LAYOUT_DESC m_layout12{};
};
}