lion0406 / angleproject

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

non-vec4 varying produces implicit truncation warning #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the attached HTML file in Chrome on a computer with an nVidia GPU under 
Windows 7 (other GPUs and OSes might also show issues).
2. Open the developer console.

What is the expected output? What do you see instead?

Expected: no warnings in the console.
Actual: 'warning X3206: implicit truncation of vector type' from the program 
info log.

What version of the product are you using? On what operating system?

Chrome 23 and 25 on Windows 7.

Please provide any additional information below.

Replacing the varying with a vec4 and only setting and accessing .xy from the 
varying makes the warning go away.

Original issue reported on code.google.com by bcorn...@google.com on 28 Nov 2012 at 1:36

Attachments:

GoogleCodeExporter commented 9 years ago
Confirmed reproducible with an NVIDIA Quadro FX 380 on Windows 7.

Nicolas, do you think there's a potential fix in the GLSL -> HLSL translation 
which would avoid these warnings?

Original comment by kbr@chromium.org on 28 Nov 2012 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by kbr@chromium.org on 28 Nov 2012 at 1:40

GoogleCodeExporter commented 9 years ago
Yes, those warnings can definitely be avoided...

Original comment by nicolas....@gmail.com on 28 Nov 2012 at 7:35

GoogleCodeExporter commented 9 years ago
Fixed in r1557.

Original comment by nicolas....@gmail.com on 29 Nov 2012 at 9:25