コード例 #1
0
        public CombineMode(ColorCombinerMux[] cc0, AlphaCombinerMux[] ac0, ColorCombinerMux[] cc1, AlphaCombinerMux[] ac1)
        {
            m_cc0 = new ColorCombinerMux[4];
            m_cc1 = new ColorCombinerMux[4];
            m_ac0 = new AlphaCombinerMux[4];
            m_ac1 = new AlphaCombinerMux[4];

            Array.Copy(m_cc0, cc0, m_cc0.Length);
            Array.Copy(m_cc1, cc1, m_cc1.Length);
            Array.Copy(m_ac0, ac0, m_ac0.Length);
            Array.Copy(m_ac1, ac1, m_ac1.Length);
        }
コード例 #2
0
        public CombineMode(ulong modeVal)
        {
            m_cc0 = new ColorCombinerMux[4];
            m_cc1 = new ColorCombinerMux[4];
            m_ac0 = new AlphaCombinerMux[4];
            m_ac1 = new AlphaCombinerMux[4];

            m_ac1[3] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_ac1[1] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_cc1[3] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            if (m_cc1[3] == ColorCombinerMux.G_CCMUX_COMBINED_ALPHA)
            {
                m_cc1[3] = ColorCombinerMux.G_CCMUX_0;
            }
            m_ac0[3] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);

            m_ac0[1] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_cc0[3] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            if (m_cc0[3] == ColorCombinerMux.G_CCMUX_COMBINED_ALPHA)
            {
                m_cc0[3] = ColorCombinerMux.G_CCMUX_0;
            }
            m_ac1[2] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_ac1[0] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);

            m_cc1[1] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 4);
            if (m_cc1[1] == ColorCombinerMux.G_CCMUX_K5)
            {
                m_cc1[1] = ColorCombinerMux.G_CCMUX_0;
            }
            m_cc0[1] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 4);
            if (m_cc0[1] == ColorCombinerMux.G_CCMUX_K5)
            {
                m_cc0[1] = ColorCombinerMux.G_CCMUX_0;
            }
            m_cc1[2] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 5);
            m_cc1[0] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 4);
            if (m_cc1[0] == ColorCombinerMux.G_CCMUX_K5)
            {
                m_cc1[0] = ColorCombinerMux.G_CCMUX_0;
            }

            m_ac0[2] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_ac0[0] = (AlphaCombinerMux)Utils.GetBitsAndShift(ref modeVal, 3);
            m_cc0[2] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 5);
            m_cc0[0] = (ColorCombinerMux)Utils.GetBitsAndShift(ref modeVal, 4);
            if (m_cc0[0] == ColorCombinerMux.G_CCMUX_K5)
            {
                m_cc0[0] = ColorCombinerMux.G_CCMUX_0;
            }
        }
コード例 #3
0
        public CombineMode(
            ColorCombinerMux cca0, ColorCombinerMux ccb0, ColorCombinerMux ccc0, ColorCombinerMux ccd0,
            AlphaCombinerMux aca0, AlphaCombinerMux acb0, AlphaCombinerMux acc0, AlphaCombinerMux acd0,
            ColorCombinerMux cca1, ColorCombinerMux ccb1, ColorCombinerMux ccc1, ColorCombinerMux ccd1,
            AlphaCombinerMux aca1, AlphaCombinerMux acb1, AlphaCombinerMux acc1, AlphaCombinerMux acd1)
        {
            m_cc0 = new ColorCombinerMux[4];
            m_cc1 = new ColorCombinerMux[4];
            m_ac0 = new AlphaCombinerMux[4];
            m_ac1 = new AlphaCombinerMux[4];

            m_cc0[0] = cca0; m_cc0[1] = ccb0; m_cc0[2] = ccc0; m_cc0[3] = ccd0;
            m_cc1[0] = cca1; m_cc1[1] = ccb1; m_cc1[2] = ccc1; m_cc1[3] = ccd1;
            m_ac0[0] = aca0; m_ac0[1] = acb0; m_ac0[2] = acc0; m_ac0[3] = acd0;
            m_ac1[0] = aca1; m_ac1[1] = acb1; m_ac1[2] = acc1; m_ac1[3] = acd1;
        }