Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove updateModuleSettings from codebase #9160

Merged
merged 8 commits into from
Sep 26, 2024

Conversation

felixpalmer
Copy link
Collaborator

@felixpalmer felixpalmer commented Sep 18, 2024

For #8997

To merge fp64 module in luma needs to be ported to UBO, for now a manual hack is included here

Change List

  • Remove updateModuleSettings from HeatmapLayer
  • Remove updateModuleSettings from Layer
  • Pass maskProps via ShaderInputs
  • Test fix

@coveralls
Copy link

coveralls commented Sep 18, 2024

Coverage Status

coverage: 91.729% (-0.009%) from 91.738%
when pulling 884c9db on felix/remove-updateModuleSettings
into 728d9a6 on master.

@felixpalmer felixpalmer changed the title WIP: Remove updateModuleSettings from codebase Remove updateModuleSettings from codebase Sep 19, 2024
Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very timely, as luma.gl 9.2 removes updateModuleSettings. If possible and haven't done so, search the code base and make sure that all references are removed (I think there were only 3 or so).

@@ -1107,6 +1109,12 @@ export default abstract class Layer<PropsT extends {} = {}> extends Component<
lightSources
} = moduleParameters;

const maskProps = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type the props?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type is in deck.gl/extensions and it is an open question whether this is the correct place to update the ShaderInputs as in many cases the referenced ShaderModules will not be present. Agree that we should type, will revisit when cleaning up, e.g. moving the shaderInputs.setProps into the extensions

modules/core/src/lib/layer.ts Show resolved Hide resolved
@felixpalmer felixpalmer merged commit 8945806 into master Sep 26, 2024
2 checks passed
@felixpalmer felixpalmer deleted the felix/remove-updateModuleSettings branch September 26, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants