On Tue, 5 Aug 2025 11:01:27 GMT, Ambarish Rapte <[email protected]> wrote:
>> I'm not sure I understand where is it used? I see that the same `MTLMesh` >> can be passed to multiple `MTLMeshView`s, but what do they do with it? > > MTLMesh is the geometry i.e. vertex buffer, index buffer required to render a > 3D Shape. So, if we create say 10 Spheres as `Sphere(50)`, then it creates 10 > MTLMeshView and only 1 MTLMesh shared among MTLMeshView. > > The mesh is used on native side, Please check MetalMesh.render() method in > the PR. > This aligns very much with D3DMesh, ES2Mesh. Ah, it's used in the native side. Please add a comment saying so because it's flagged as an unused field in Java. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1824#discussion_r2258508771
