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

[WebGL2] Use Layout Qualifiers in shaders #2604

Open
birkskyum opened this issue May 28, 2023 · 1 comment
Open

[WebGL2] Use Layout Qualifiers in shaders #2604

birkskyum opened this issue May 28, 2023 · 1 comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed

Comments

@birkskyum
Copy link
Member

birkskyum commented May 28, 2023

This is a ticket for rewriting how we deal with attribute locations - preparing for WebGPU.

In WebGL1, the only way to binding attribute names to indexes was:

gl.bindAttribLocation(program, index, attrName);

In WebGL2, the webg1 method still works, but the in-shader layout qualifies was introduced:

layout (location = 0) in vec4 attrName;

In WebGPU, only in-shader indexes are allowed, so it makes sense to start refactoring the webgl2 code now to a more modern render-pipeline structure.

@HarelM HarelM added enhancement New feature or request PR is more than welcomed Extra attention is needed labels Feb 26, 2024
@birkskyum birkskyum changed the title Use Layout Qualifiers in shaders [WebGL2] Use Layout Qualifiers in shaders Aug 5, 2024
@birkskyum
Copy link
Member Author

Blocked by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants