Post

Replies

Boosts

Views

Activity

Reply to Metal-cpp link errors
Was thinking of this more and realizing it probably has something to do with the private implementation, but I do have a .cpp file that defines and includes it: `#define NS_PRIVATE_IMPLEMENTATION #define CA_PRIVATE_IMPLEMENTATION #define MTL_PRIVATE_IMPLEMENTATION #include <Foundation/Foundation.hpp> #include <Metal/Metal.hpp> #include <QuartzCore/QuartzCore.hpp>` That .cpp is located in a library, whereas the framework is on the final link (but that's kind of what I'd expect).
Jul ’22
Reply to Metal Fragment Shader Reflection
I've been digging into this and it seems like we maybe have to work backwards and have a PSO before we can query the reflection. The documentation seems to just throw out things and let you guess how to use them unless you are doing things the most straight-forward way (i.e. you don't have a multi-platform title with a bunch of pre-existing code that expects things to be done in a slightly different way).
Aug ’22
Reply to Metal-cpp iOS examples/frame capture
I'm still digging into this. Conceptually the run loop doesn't seem to be failing on anything. The very first command buffer commit yields a purple screen (not sure yet where this is coming from). I also wanted to mention that I am currently ignoring the run loop callback and instead using our normal frame cadence to do the swap. The part I'm least familiar with is definitely the code to set up the view in the first place. It is mostly straight from our Vulkan version that is using MoltenVK.
Aug ’22