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

Failed to compile shaders that has nested struct #87

Open
cowcoa opened this issue Feb 13, 2015 · 1 comment
Open

Failed to compile shaders that has nested struct #87

cowcoa opened this issue Feb 13, 2015 · 1 comment

Comments

@cowcoa
Copy link

cowcoa commented Feb 13, 2015

Hi aras,
I found the optimizer cannot correctly dealing with nested structure.
e.g, the following code:

struct fragInput {
highp vec4 baseTC;
}
struct fragPass {
fragInput IN;
}

will be interpreted by the optimizer as:

fragInput tmpvar_1;
tmpvar_1 = fragInput(vec4(0.0, 0.0, 0.0, 0.0));

but, struct fragInput's declaration is missing. How to solve this problem?

thanks a lot.

@cowcoa
Copy link
Author

cowcoa commented Feb 16, 2015

Anybody here? Help plz. :(

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

No branches or pull requests

1 participant