Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-12-29 Thread Nir Lisker
On Fri, 10 Nov 2023 23:39:21 GMT, Nir Lisker wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A foll

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-12-01 Thread Nir Lisker
On Fri, 1 Dec 2023 10:07:37 GMT, Ambarish Rapte wrote: >> I agree with 2. and I also think that `TextureParameters` would be a better >> name for this. >> >> This should also follow in below method names and such (ex. >> `setTextureParameters()` instead of `setTextureData()`) > > These propert

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-12-01 Thread Nir Lisker
On Fri, 1 Dec 2023 09:14:28 GMT, Ambarish Rapte wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Addressed review comments > > modules/javafx.graphics/src/main/native-prism-d3d/D3DContext.cc line 367: > >> 365: { >>

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-12-01 Thread Ambarish Rapte
On Fri, 10 Nov 2023 23:39:21 GMT, Nir Lisker wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A foll

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-12-01 Thread Ambarish Rapte
On Wed, 15 Nov 2023 11:39:30 GMT, Lukasz Kostyra wrote: >> 1. Not when it will be promoted to public API. Adding record components >> breaks backwards compatibility, so making this a record will not allow >> adding more configuration later on. What might be possible is making it an >> interfac

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-21 Thread Michael Strauß
On Wed, 15 Nov 2023 13:00:54 GMT, Nir Lisker wrote: >> You're right, there's no implicit conversion from scoped enums to integers. >> While one could get very creative with C++, maybe just using an unscoped >> enum is easier. You might want to prefix the constants with `MT_` or >> something li

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-15 Thread Nir Lisker
On Thu, 9 Nov 2023 02:45:34 GMT, Michael Strauß wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Addressed review comments > > modules/javafx.graphics/src/main/native-prism-d3d/D3DPhongMaterial.cc line 39: > >> 37:

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-15 Thread Nir Lisker
On Mon, 13 Nov 2023 01:23:13 GMT, Michael Strauß wrote: >> About 2, I tried that initially and got into problems iterating over the >> enum in `D3DMeshView.cc` line 293. How would you perform the iteration? > > You're right, there's no implicit conversion from scoped enums to integers. > While

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-15 Thread Lukasz Kostyra
On Fri, 10 Nov 2023 15:24:13 GMT, Nir Lisker wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/scene/paint/TextureData.java >> line 12: >> >>> 10: */ >>> 11: // Here we can support mipmaps, wrapping modes (which exists internally >>> and can be pulled out), addressing modes etc.

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-15 Thread Lukasz Kostyra
On Fri, 10 Nov 2023 23:39:21 GMT, Nir Lisker wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A foll

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-14 Thread Kevin Rushforth
On Fri, 10 Nov 2023 23:39:21 GMT, Nir Lisker wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A foll

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-12 Thread Michael Strauß
On Fri, 10 Nov 2023 23:33:12 GMT, Nir Lisker wrote: >> modules/javafx.graphics/src/main/native-prism-d3d/D3DPhongMaterial.h line 41: >> >>> 39: self_illumination, >>> 40: num_map_types >>> 41: }; >> >> 1. Types generally seem to use PascalCase in this library, and constants >> UPPER_CA

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture [v2]

2023-11-10 Thread Nir Lisker
> Moves the filter setting of the samplers from the device parameters > configuration to the use-site, allowing for dynamic changes in the sampler. > This PR does internal plumbing work only to bring it close to the ES2 > pipeline. A followup PR will create the public API. > > Summary of the ch

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture

2023-11-10 Thread Nir Lisker
On Thu, 9 Nov 2023 02:44:44 GMT, Michael Strauß wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A f

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture

2023-11-10 Thread Nir Lisker
On Thu, 9 Nov 2023 03:15:27 GMT, Michael Strauß wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A f

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture

2023-11-10 Thread Nir Lisker
On Thu, 9 Nov 2023 03:16:51 GMT, Michael Strauß wrote: >> Moves the filter setting of the samplers from the device parameters >> configuration to the use-site, allowing for dynamic changes in the sampler. >> This PR does internal plumbing work only to bring it close to the ES2 >> pipeline. A f

Re: RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture

2023-11-08 Thread Michael Strauß
On Wed, 8 Nov 2023 22:30:34 GMT, Nir Lisker wrote: > Moves the filter setting of the samplers from the device parameters > configuration to the use-site, allowing for dynamic changes in the sampler. > This PR does internal plumbing work only to bring it close to the ES2 > pipeline. A followup

RFR: 8092272: [D3D 3D] Need a robust 3D states management for texture

2023-11-08 Thread Nir Lisker
Moves the filter setting of the samplers from the device parameters configuration to the use-site, allowing for dynamic changes in the sampler. This PR does internal plumbing work only to bring it close to the ES2 pipeline. A followup PR will create the public API. Summary of the changes: * Cre