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

Initial tint transpilation support for WebGPU #8477

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

bridgewaterrobbie
Copy link
Contributor

@bridgewaterrobbie bridgewaterrobbie commented Feb 27, 2025

BUGS = [398273927]

@bridgewaterrobbie bridgewaterrobbie added the internal Issue/PR does not affect clients label Feb 27, 2025
@sidreesshah sidreesshah force-pushed the idris/webgpu_backend branch 6 times, most recently from dda56ab to ffdece2 Compare March 4, 2025 21:04
Base automatically changed from idris/webgpu_backend to main March 5, 2025 03:09
@bridgewaterrobbie bridgewaterrobbie force-pushed the rbridgewater/filimatWgsl branch from 3e568a6 to b29a2a3 Compare March 5, 2025 15:56
@bridgewaterrobbie bridgewaterrobbie marked this pull request as ready for review March 5, 2025 15:59
*outWsl = wgslOut->wgsl;
return true;
#else
slog.i << "Trying to emit WGSL without including WebGPU dependencies, please set CMake arg FILAMENT_SUPPORTS_WEBGPU and TINT_BUILD_SPV_READER" << io::endl;

Choose a reason for hiding this comment

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

should this be a warning, e.g. slog.w?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hrm. A bit debatable, but either way functionally it will fail out due to the return false below it. It could also arguably be slog.e.

I'd like to leave it at the moment unless others clarify the common patterns expected in filament.

@bridgewaterrobbie bridgewaterrobbie force-pushed the rbridgewater/filimatWgsl branch 2 times, most recently from 06d426e to 1b09245 Compare March 6, 2025 21:19
@bridgewaterrobbie bridgewaterrobbie force-pushed the rbridgewater/filimatWgsl branch from 1b09245 to a3f0d0a Compare March 6, 2025 21:58
@bridgewaterrobbie bridgewaterrobbie enabled auto-merge (rebase) March 6, 2025 21:58
@bridgewaterrobbie bridgewaterrobbie merged commit 74b09c7 into main Mar 6, 2025
13 checks passed
@bridgewaterrobbie bridgewaterrobbie deleted the rbridgewater/filimatWgsl branch March 6, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants