Exemple #1
0
        internal void Gather(MyRCStats other)
        {
            Draw                 += other.Draw;
            DrawInstanced        += other.DrawInstanced;
            DrawIndexed          += other.DrawIndexed;
            DrawIndexedInstanced += other.DrawIndexedInstanced;
            DrawAuto             += other.DrawAuto;

            ShadowDrawIndexed          += other.ShadowDrawIndexed;
            ShadowDrawIndexedInstanced += other.ShadowDrawIndexedInstanced;

            BillboardDrawIndexed += other.BillboardDrawIndexed;

            SetVB += other.SetVB;
            SetIB += other.SetIB;
            SetIL += other.SetIL;
            SetVS += other.SetVS;
            SetPS += other.SetPS;
            SetGS += other.SetGS;
            SetCB += other.SetCB;

            SetRasterizerState += other.SetRasterizerState;
            SetBlendState      += other.SetBlendState;

            BindShaderResources += other.BindShaderResources;
        }
 internal static void GatherStats(MyRCStats stats)
 {
     m_rcStats.Gather(stats);
 }
 internal static void GatherStats(MyRCStats stats)
 {
     m_rcStats.Gather(stats);
 }
        internal void Gather(MyRCStats other)
        {
            Draw                 += other.Draw;
            DrawInstanced        += other.DrawInstanced;
            DrawIndexed          += other.DrawIndexed;
            DrawIndexedInstanced += other.DrawIndexedInstanced;
            DrawAuto             += other.DrawAuto;

            SetVB               += other.SetVB;
            SetIB               += other.SetIB;
            SetIL               += other.SetIL;
            SetVS               += other.SetVS;
            SetPS               += other.SetPS;
            SetGS               += other.SetGS;
            SetCB               += other.SetCB;
                                 
            SetRasterizerState  += other.SetRasterizerState;
            SetBlendState       += other.SetBlendState;
            
            BindShaderResources += other.BindShaderResources;
        }