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

Revert "TSL: Added type conversions to WGSLNodeFunction and fleshed… #28659

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jun 14, 2024

Related issue: #28577

Description

This broken that PR and example, because the approach did not filter <type> of the textures.

I think we can reimplement again after this fix.

@sunag sunag marked this pull request as ready for review June 14, 2024 17:53
@sunag sunag added this to the r166 milestone Jun 14, 2024
@sunag sunag merged commit 88f8b7c into mrdoob:dev Jun 14, 2024
9 of 10 checks passed
@sunag sunag deleted the dev-revert branch June 14, 2024 17:53
@cmhhelgeson
Copy link
Contributor

I see what you mean. In the old (now reverted version), types are vec3f, vec2f, vec2f, texture_2d, sampler, float x10. The newer code generated types of vec3f, vec2f, vec2f, texture_2d(!), sampler, float x10.

I suppose there are a few solutions. We could just add edge cases to the type lib for all the types that should have their filtered (texture_2d, texture_2d_array, texture_3d, etc), but that might add too many checks. I'll look and see if there's something more efficient that can be done within the FunctionNode, and check it against each of the existing WGSL forward samples first.

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