Hi!
I'm currently trying to convert this Objective-C example project ( https://developer.apple.com/documentation/metal/performing_calculations_on_a_gpu?language=objc ) to one using the metal-cpp wrapper.
However when I make the MetalAdder class extend NS::Object (just like in the original codebase) it removes my constructor.
class MetalAdder : public NS::Object{ ... } is what I have.
When I instantiate this MetalAdder class as:
MetalAdder adder;
adder.initWithDevice(device);
or
auto adder = NS::TransferPtr(new MetalAdder);
I get the error Call to implicitly-deleted default constructor of 'MetalAdder'.
Is there something I'm doing wrong? Should I instantiate in a different way or should my MetalAdder class just not extend the NS::Object class?
Thanks in advance!
1
0
1.5k