JDK-8311224 : Add support for depth testing in 3D metal implementation
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-07-03
  • Updated: 2023-07-14
  • Resolved: 2023-07-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Blocks :  
Description
We dont have support for depth testing for 3D primitives and also we dont have appropriate depth texture which should be updated/cleared to maintain appropriate state. We need to add support for depth testing in Metal.

Also find appropriate test which can be used to verify depth testing in 3D. 
Comments
Changeset: 91d48b34 Author: Jayathirth Rao D V <jayathirth.d.v@oracle.com> Committer: Ambarish Rapte <arapte@openjdk.org> Date: 2023-07-14 11:38:48 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/91d48b34112597b16fe0874babb10d2110565468
14-07-2023

Depth testing is verified using fx83dfeatures.TwoBoxes test from apps/toys/FX8-3DFeatures Also i modified this test to change dimension of boxes and z depth to check whether intersection in Z direction works fine.
14-07-2023

At first i created depth texture by default when we create RTT texture and this also works fine, but i dont know its impact on performance. So after more analysis i am creating depthTexture when we setRTT. In future if we think it is better to create depthTexture along with RTT creation we should do it.
14-07-2023