MTLVertexFormat.h 475 B

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