From 1fdf8fc7762a9a6c5eb26c0844f3ee35d232e223 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 8 May 2022 05:45:10 +0100 Subject: [PATCH] Fix MTL::LinkedFunctions bug in metal-cpp.h MTLLinkedFunctions groups is an NS::Dictionary* not an NS::Array* ie. @property(readwrite, nonatomic, copy, nullable) NSDictionary> *> *groups; --- renderdoc/driver/metal/official/metal-cpp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/renderdoc/driver/metal/official/metal-cpp.h b/renderdoc/driver/metal/official/metal-cpp.h index ece37b69f..888980002 100644 --- a/renderdoc/driver/metal/official/metal-cpp.h +++ b/renderdoc/driver/metal/official/metal-cpp.h @@ -16167,8 +16167,8 @@ public: NS::Array* binaryFunctions() const; void setBinaryFunctions(const NS::Array* binaryFunctions); - NS::Array* groups() const; - void setGroups(const NS::Array* groups); + NS::Dictionary* groups() const; + void setGroups(const NS::Dictionary* groups); NS::Array* privateFunctions() const; void setPrivateFunctions(const NS::Array* privateFunctions); @@ -16211,12 +16211,12 @@ _MTL_INLINE void MTL::LinkedFunctions::setBinaryFunctions(const NS::Array* binar Object::sendMessage(this, _MTL_PRIVATE_SEL(setBinaryFunctions_), binaryFunctions); } -_MTL_INLINE NS::Array* MTL::LinkedFunctions::groups() const +_MTL_INLINE NS::Dictionary* MTL::LinkedFunctions::groups() const { - return Object::sendMessage(this, _MTL_PRIVATE_SEL(groups)); + return Object::sendMessage(this, _MTL_PRIVATE_SEL(groups)); } -_MTL_INLINE void MTL::LinkedFunctions::setGroups(const NS::Array* groups) +_MTL_INLINE void MTL::LinkedFunctions::setGroups(const NS::Dictionary* groups) { Object::sendMessage(this, _MTL_PRIVATE_SEL(setGroups_), groups); }