| 1 | // Copyright 2022 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <Metal/Metal.h> |
| 7 | |
| 8 | #include "VideoBackends/Metal/MRCHelpers.h" |
| 9 | |
| 10 | #include "VideoCommon/NativeVertexFormat.h" |
| 11 | |
| 12 | namespace Metal |
| 13 | { |
| 14 | class VertexFormat : public NativeVertexFormat |
| 15 | { |
| 16 | public: |
| 17 | VertexFormat(const PortableVertexDeclaration& vtx_decl); |
| 18 | |
| 19 | MTLVertexDescriptor* Get() const { return m_desc; } |
| 20 | |
| 21 | MRCOwned<MTLVertexDescriptor*> m_desc; |
| 22 | }; |
| 23 | } // namespace Metal |