Commit aa4d88d6 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Add a comment about D3D write masks and GLSL destination swizzles.

parent dad03740
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
/*
* D3D shader asm has swizzles on source parameters, and write masks for
* destination parameters. GLSL uses swizzles for both. The result of this is
* that for example "mov dst.xw, src.zyxw" becomes "dst.xw = src.zw" in GLSL.
* Ie, to generate a proper GLSL source swizzle, we need to take the D3D write
* mask for the destination parameter into account.
*/
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#include "wined3d_private.h" #include "wined3d_private.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment