Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Combining multiple non-vec4 constants #20

Open
grisevg opened this Issue Jan 25, 2013 · 2 comments

Comments

Projects
None yet
3 participants

grisevg commented Jan 25, 2013

Would be cool if compiler could combine multiple contstants(unifoms) together in one vec4, and then tell in meta data which ones are where.
Right now for example if you have 4 uniform floats, compiler will put them in 4 different constants at position 0(x)

Member

alexmac commented Feb 14, 2013

do you have an example? I remember adding code to perform that optimization so this might be specific to certain shaders rather than a missing feature

faveris commented May 17, 2013

Just go to http://adobe.github.io/glsl2agal/, add four float uniforms to vertex shader and use them in the main(). All four uniforms will be put in different registers (vc1 - vc4)

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