I'm using VTK9.0 that I painfuly compiled for iOS.
I'm capturing data using ARKit and that particlesUniforms are in a MTLBuffer.
Instead of copying that to memory with the CPU, I pass that MTLBuffer to my VTKViewerViewController, then I wish to convert this MTLBuffer to a PolyData or something, is there any way to do that without doing GPU(Metal) -> CPU -> GPU(VTK/OpenGl)?
I'm new to all this sorry if my wording is imprecise
Edit:
I currently access the first value of my buffer this way, particle buffer being the MTLbuffer I pass around.
struct ParticleUniforms *uniforms = (struct ParticleUniforms*) particlesBuffer.contents;
printf("%d -- ", uniforms->confidence);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…