RFR: 8373232: Set default filters and addressing modes for 3D metal textures
Lukasz Kostyra
lkostyra at openjdk.org
Fri Dec 12 13:58:41 UTC 2025
On Fri, 12 Dec 2025 08:18:14 GMT, Jayathirth D V <jdv at openjdk.org> wrote:
> Currently we don't set any texture filtering & addressing modes for 3D textures in Metal pipeline.
> Default 3D texture filtering is "nearest" for Metal textures, but we use "linear" filtering by default for 3D textures in case of OpenGL.
> Default addressing mode is "clamp_to_edge" in Metal textures, but we use "repeat" addressing mode for 3D textures in OpenGL.
>
> Metal should use same default filtering & addressing modes for 3D textures as in OpenGL pipeline.
> Under this issue we are trying only to match defaults of Metal to OpenGL pipeline.
>
> We don't update the filters/addressing modes for 3D textures once created.
> We have open enhancements like https://bugs.openjdk.org/browse/JDK-8324594 where we might provide API's to set sampler states for 3D textures in future.
>
> Functional and performance testing is green with this update.
In general looks good, but I have one question to double-check something I couldn't find.
The sampler is chosen based on whether we use mipmaps or not. In cases where mipmaps are not used, are we still generating them?
-------------
PR Review: https://git.openjdk.org/jfx/pull/2005#pullrequestreview-3571922911
More information about the openjfx-dev
mailing list