diff options
| author | TellowKrinkle <tellowkrinkle@gmail.com> | 2022-08-03 01:13:55 -0500 |
|---|---|---|
| committer | TellowKrinkle <tellowkrinkle@gmail.com> | 2022-09-19 16:28:24 -0500 |
| commit | 1eb3aaa5484a05037d51899ff35d9c553962373e (patch) | |
| tree | 4f277ae8547bdf2602f15760dfdbe0f1782df719 /Source/Core/VideoBackends | |
| parent | 28b31b83279925245d82627542c2928800e96d29 (diff) | |
VideoCommon: Use std::array in PortableVertexDeclaration
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Metal/MTLObjectCache.mm | 3 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Metal/MTLVertexFormat.mm | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Metal/MTLObjectCache.mm b/Source/Core/VideoBackends/Metal/MTLObjectCache.mm index 49a9f4b1fb..9b1fa92fb1 100644 --- a/Source/Core/VideoBackends/Metal/MTLObjectCache.mm +++ b/Source/Core/VideoBackends/Metal/MTLObjectCache.mm @@ -289,7 +289,8 @@ public: } }; template <size_t N> - static void CopyAll(std::array<VertexAttribute, N>& output, const AttributeFormat (&input)[N]) + static void CopyAll(std::array<VertexAttribute, N>& output, + const std::array<AttributeFormat, N>& input) { for (size_t i = 0; i < N; ++i) output[i] = VertexAttribute(input[i]); diff --git a/Source/Core/VideoBackends/Metal/MTLVertexFormat.mm b/Source/Core/VideoBackends/Metal/MTLVertexFormat.mm index 6453c5189a..d9407402e2 100644 --- a/Source/Core/VideoBackends/Metal/MTLVertexFormat.mm +++ b/Source/Core/VideoBackends/Metal/MTLVertexFormat.mm @@ -125,7 +125,7 @@ static void SetAttribute(MTLVertexDescriptor* desc, u32 attribute, const Attribu template <size_t N> static void SetAttributes(MTLVertexDescriptor* desc, u32 attribute, - const AttributeFormat (&format)[N]) + const std::array<AttributeFormat, N>& format) { for (size_t i = 0; i < N; ++i) SetAttribute(desc, attribute + i, format[i]); |
