Source Register Swizzling
Microsoft DirectX 9.0 SDK Update (October 2004)

Source Register Swizzling


Before an instruction runs, the data in a source register is copied to a temporary register. Swizzling refers to the ability to copy any source register component to any temporary register component. Swizzling does not affect the source register data.

Component Swizzling

As shown in the following table, swizzling can be applied to the individual components of the source register data (where r is one of the valid vertex shader input Registers - vs_1_1).

Component modifierDescription
r.[xyzw][xyzw][xyzw][xyzw]Source swizzle

Swizzling cannot be used on the m3x2, m3x3, m4x3, and m4x4 instructions.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.