Xcode Metal debugging redundant binding

Hi,

In Xcode 13.3.1 frame capture, how do I know which buffer is referring to?

Thanks

Replies

This is a pretty common warning that isn't usually a problem. It means that a buffer that's already been set in an encoder has been set a second time. So the second call to set[Vertex|Fragment]buffer is unnecessary.

Reducing those redundant set[Vertex|Fragment]buffer calls would reduce your CPU load. This would only make a difference if the CPU is a bottleneck in your app, and it may only be worthwhile to reduce warnings calls if you see a lot of those warnings.

  • Thanks. But my question was about the identification of the buffer. I found that setting id::label will show that label instead of the hex id

Add a Comment