mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
NativeVertexFormat: Use in-class initialization
This commit is contained in:
@ -44,8 +44,7 @@ DXGI_FORMAT VarToD3D(VarType t, int size, bool integer)
|
||||
return retval;
|
||||
}
|
||||
|
||||
D3DVertexFormat::D3DVertexFormat(const PortableVertexDeclaration &vtx_decl)
|
||||
: m_num_elems(0), m_layout12({}), m_elems()
|
||||
D3DVertexFormat::D3DVertexFormat(const PortableVertexDeclaration& vtx_decl)
|
||||
{
|
||||
this->vtx_decl = vtx_decl;
|
||||
|
||||
|
@ -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{};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user