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

pixi/webgl/** touchup #3022

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

pixi/webgl/** touchup #3022

wants to merge 15 commits into from

Conversation

esheyw
Copy link
Collaborator

@esheyw esheyw commented Jan 15, 2025

Reorganize all of pixi/webgl/** to preferred order of classes and namespaces
Change over to new interface Any from type Any
Add tests for all shaders, extensions, and helpers
Fix enum issues from Brand conversions
General other touchup

Copy link
Contributor

github-actions bot commented Jan 15, 2025

Test results:

Changed File Fixed Errors New Errors Unfixed Errors
tests/foundry/client-esm/canvas/tokens/ring-data.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/core/containers/point-source-mesh.test-d.ts 1 0 0
tests/foundry/client/pixi/sources/vision-source.test-d.ts 1 0 0
tests/foundry/client/pixi/webgl/extensions/batch-renderer.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/extensions/batch-shader-generator.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/helpers/smooth-noise.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/helpers/texture-extractor.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/base-shader-mixin.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/effects/lighting.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/vision.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/weather/base.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/weather/effect.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/weather/fog.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/weather/rain.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/effects/weather/snow.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/filters/base-filter.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/effects-masking.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/environment.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/glow-overlay.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/invisibility.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/outline-overlay.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/transition.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/visibilty.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/void.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/grid/grid.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/lighting/background-lighting.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/lighting/base-lighting.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/region/base.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/region/highlight.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/samplers/base-sampler.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/samplers/color-adjustments.test-d.ts 1 0 0
tests/foundry/client/pixi/webgl/shaders/samplers/depth.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.test-d.ts 1 0 0
tests/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/samplers/invisibility.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/samplers/monochromatic.test-d.ts - DELETED - - -
tests/foundry/client/pixi/webgl/shaders/samplers/occlusion.test-d.ts 2 0 0
tests/foundry/client/pixi/webgl/shaders/samplers/primary.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/samplers/token-rings.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/background-vision.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/base-vision.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/coloration-vision.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/effects/amplification.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/effects/wave.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/vision/illumination-vision.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/weather/base-weather.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/weather/effect.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/weather/fog.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/weather/rain.test-d.ts - NEW - 0 -
tests/foundry/client/pixi/webgl/shaders/weather/snow.test-d.ts - NEW - 0 -

6 errors have been fixed.
283 tests have no changes.

This comment will be automatically updated whenever you push a commit.

@@ -10,7 +10,12 @@ declare global {

type PackInterleavedGeometryFunction = ToMethod<
(
element: PIXI.IBatchableElement,
/**
* @privateRemarks IntentionalPartial to allow `DepthSamplerShader.DepthBatchData`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's more useful to explain why null isn't allowed imo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's as it is because I don't know for sure anything about the nullability in PIXI.BatchRenderer._packInterleavedGeometry , I only have information about what keys are in use or not. I could go on a hunt, but I wouldn't be able to add notations to the keys coming from the PIXI interface anyway, so this seemed like the most correct I could for sure be.

src/foundry/client/pixi/webgl/shaders/base-shader.d.mts Outdated Show resolved Hide resolved
src/foundry/client/pixi/webgl/shaders/base-shader.d.mts Outdated Show resolved Hide resolved
@@ -19,6 +15,7 @@ declare class AdaptiveFragmentChannel {
* A factory method for creating the filter using its defined default values
* @param options - Options which affect filter construction
*/
//TODO: See if we can get this to return the mixed shader class, as it calls `super.create()`
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can look into this if you'd like.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would very much not like to think about FragmentChannelMixin for the rest of my life; it is too complicated for something that literally sees no use. Maybe this can be a side quest after v13 (still hoping v14 just yanks it).

@esheyw esheyw changed the title Shader touchup pixi/webgl/** touchup Jan 16, 2025
@esheyw esheyw marked this pull request as ready for review January 16, 2025 21:00
@esheyw esheyw requested a review from a team as a code owner January 16, 2025 21:00
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.

2 participants