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

Chore: Bulge Pinch Filter Deprecations #416

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

bbazukun123
Copy link
Collaborator

  • Add deprecations for the Bulge Pinch filter.
  • Use GpuProgram.from and GlProgram.from for caching.

Comment on lines 11 to 19
type DeprecatedPointLike = PointData | number[];

interface DeprecatedBulgePinchFilterOptions
{
center: DeprecatedPointLike;
radius: number;
strength: number;
}

Copy link
Member

Choose a reason for hiding this comment

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

Again, I'd argue that we could support number[] publicly, but simply transform it into a PointData in the center setter. Then you don't need all this deprecation code. Just because unforms don't support number[] doesn't mean it's not a valid API choice.

@bigtimebuddy bigtimebuddy merged commit 75c3fef into main Feb 14, 2024
2 checks passed
@bigtimebuddy bigtimebuddy deleted the chore-deprecation-bulge-pinch branch February 14, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants