RFR: 8271024: Implement macOS Metal Rendering Pipeline [v11]
Ambarish Rapte
arapte at openjdk.org
Tue Aug 5 14:18:06 UTC 2025
On Mon, 4 Aug 2025 22:32:40 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
>> Yes, MTLMesh can be shared by multiple MTLMeshView.
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1824#discussion_r2253993865
More information about the openjfx-dev
mailing list