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

Allow a Vec newtype to be used within uniform buffers #21

Open
teoxoy opened this issue Jan 6, 2023 · 0 comments
Open

Allow a Vec newtype to be used within uniform buffers #21

teoxoy opened this issue Jan 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@teoxoy
Copy link
Owner

teoxoy commented Jan 6, 2023

This newtype would work in the same way a runtime-sized array works within storage buffers.

This enables use-cases where shaders are generated at runtime and the array size is injected in the shader.

We should require a newtype for this since you have to be more careful to inject the correct array size in the shader (same size as the Vec length).

@teoxoy teoxoy added the enhancement New feature or request label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant