Skip to content

Conversation

Vipitis
Copy link
Collaborator

@Vipitis Vipitis commented Jun 16, 2025

part of #4

wip just sorta got the idea working, will need a few more things:

  • keymap to match shadertoy, especially keys that have a longer name
  • better example (one that shows the whole texture (https://www.shadertoy.com/view/4dGyDm), maybe character movement (https://www.shadertoy.com/view/3lsXzB but also with mouse?)
  • works via api
  • tests multiple instances
  • test different keyboard layouts (somehow?)
  • can we do event based tests?
  • there is some offset or wrap around issue

"""
prepares the texture and sampler. Returns it's binding layouts and bindgroup layout entries
"""
# this gets called during the draw too... so every single time (via _setup_renderpipeline!)
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 will have to think about this a bit more since this means we don't actually need self.update at all - but not sure if this is the correct approach as this also means that static textures get written every single pass which I don't think is needed.

Can also be problematic if the same channel/resource is used in multiple passes.

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