bennycen / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Transposed matrix attribute/varying slot count #639

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We transpose matrices in various places to ensure we can use HLSL's syntax for 
row/column selection (i.e. the [] operator works differently for GLSL). For 
non-square matrices this could affect the required number of attribute or 
varying vector slots.

We need to ensure we pack them the way GL expects and not use additional slots. 
This may require transposing the matrices in other places (e.g. the shader 
header).

Original issue reported on code.google.com by c...@chromium.org on 5 May 2014 at 2:25

GoogleCodeExporter commented 9 years ago
Good catch. We should be able to use hlsl packing keywords to remove the need 
for us to transpose matrices for attributes. Not sure about varyings.

Original comment by jmad...@chromium.org on 5 May 2014 at 2:39