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

[ts-sdk] Make shaders work on web #996

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noituri
Copy link
Member

@noituri noituri commented Mar 5, 2025

Shaders on web have to be slightly different from the native version, because we can't use binding_array on web.
Due to those limitations, on the web, we'll only allow one texture to be passed to the user shader

Closes: #701

@noituri noituri requested a review from wkozyra95 March 5, 2025 14:18
@noituri noituri force-pushed the @noituri/make-shaders-work-wasm branch from c820f8c to f377c89 Compare March 5, 2025 14:27
plane_id: i32,
time: f32,
output_resolution: vec2<u32>,
texture_count: u32,
Copy link
Member Author

@noituri noituri Mar 5, 2025

Choose a reason for hiding this comment

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

I'm not sure if texture_count is needed here. Currently, we only allow one texture but in the future we might support more. The same goes for plane_id.

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.

Make user shaders work on WASM
1 participant