예제 #1
0
        public void Swizzle([NotNull] Operand source, [NotNull] Operand dest, SwizzleMask mask)
        {
            if (dest.Format != mask.SwizzleOutFormat)
            {
                throw new ArgumentException("Destination does not match mask format.");
            }

            compiler.Swizzle(source.Name, mask, dest.Name);
        }