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

stage_inputs format #139

Closed
erlendp opened this issue Apr 5, 2020 · 4 comments
Closed

stage_inputs format #139

erlendp opened this issue Apr 5, 2020 · 4 comments

Comments

@erlendp
Copy link

erlendp commented Apr 5, 2020

Just wondering how to get the stride of a vertex input so I can create my buffer descriptor correctly. Calling get_type(input.type_id) on layout(location = 0) in vec4 a_Pos; appears to return a Float { array: [] }. There doesn't seem to be any way to get the actual vecsize which I was expecting. Am I missing something here?

@grovesNL
Copy link
Owner

Hi @erlendp! Were you able to figure this out?

@erlendp
Copy link
Author

erlendp commented Apr 26, 2020

@grovesNL I've put this down for a while, while I work on other projects, but I'm still keen to find a solution!

@sir-earl
Copy link
Contributor

Looks like the required fields hadn't been mapped through yet, so I've added a PR to expose them:

#142

@grovesNL
Copy link
Owner

Looks like this was fixed by #142, thanks @sir-earl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants