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
varying.def.sc file is too mysterious #306
Comments
White space is probably bug. What's exact problem? Format is:
|
I got problems when I did not have spaces around : and =. Parsing seemed to fail and no varying statement was added to the source. |
Also, right now, both my $input and $output values are being declared as "varying" for some reason I can't figure out.
varying.def.sc:
And with options |
The result is:
|
vertex_attrib is invalid name for attribute ($input). It must be one of following: For $output you can name varying as you like. |
I fixed varying parsing. |
Ok, good! But some documentation would be quite nice, so you can find out that some names are special. (Is there any reason they have to be? Can't shaderc change the names around if special ones are needed on some platform?) |
It's documented in all examples since they are using a_* notation + header file that provides documentation about vertex declaration explicitly states how those are bound to shader. |
There's no documentation for the varying.def.sc file format, and it seems to have lots of peculiarities about it. I've run into lots of trouble getting my shaders working because of problems with varying.def.sc. For instance, it seems highly sensitive to whitespace placement. It is also not quite clear what the various parts of it actually mean.
The text was updated successfully, but these errors were encountered: