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

feat(shadertools): WGSL ShaderLayout parser #1837

Merged
merged 4 commits into from
Nov 14, 2023
Merged

feat(shadertools): WGSL ShaderLayout parser #1837

merged 4 commits into from
Nov 14, 2023

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Nov 13, 2023

For #

Background

  • Extract a ShaderLayout from WGSL source code.
  • In WebGL we can do this through an introspection API on a linked program but this does not exist (yet?) in WebGPU.
  • Use https://github.com/brendan-duncan/wgsl_reflect
  • Include built bundle of wgsl_reflect as it is not published, at least not directly from original repo.

Change List

  • New shadertools getShaderLayoutFromWGSL() method.

@ibgreen ibgreen merged commit 37c5024 into master Nov 14, 2023
1 check passed
@ibgreen ibgreen deleted the ib/wgsl-parser branch November 14, 2023 01:21
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.

1 participant