コード例 #1
0
        ///
        ///------------------------------------------------------------
        protected override JobHandle OnUpdate(JobHandle _inpDeps)
        {
            var transToMatrixJob = new TransToMatrix
            {
                Matrices  = m_TransGroup.Matrices,
                Positions = m_TransGroup.Positions
            };
            var transToMatrixJobHandle = transToMatrixJob.Schedule(m_TransGroup.Length, 64, _inpDeps);

            var rotTransToMatrixJob = new RotTransToMatrix
            {
                Matrices  = m_RotTransGroup.Matrices,
                Positions = m_RotTransGroup.Positions,
                Rotations = m_RotTransGroup.Rotations
            };
            var rotTransToMatrixJobHandle = rotTransToMatrixJob.Schedule(m_RotTransGroup.Length, 64, transToMatrixJobHandle);

            var sclRotTransToMatrixJob = new SclRotTransToMatrix
            {
                Matrices  = m_SclRotTransGroup.Matrices,
                Positions = m_SclRotTransGroup.Positions,
                Rotations = m_SclRotTransGroup.Rotations,
                Scales    = m_SclRotTransGroup.Scales
            };

            return(sclRotTransToMatrixJob.Schedule(m_SclRotTransGroup.Length, 64, rotTransToMatrixJobHandle));
        }
コード例 #2
0
        protected override unsafe JobHandle OnUpdate(JobHandle inputDeps)
        {
            var handle = inputDeps;

            handle = new TransToMatrix().Schedule(this, handle);
#if ENABLE_TRANSFORM2D_ROTATION
            handle = new RotTransToMatrix().Schedule(this, handle);
#endif
            return(handle);
        }
コード例 #3
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            var transToMatrixJob = new TransToMatrix();

            transToMatrixJob.positions = m_TransGroup.positions;
            transToMatrixJob.matrices  = m_TransGroup.matrices;
            var transToMatrixJobHandle = transToMatrixJob.Schedule(m_TransGroup.Length, 64, inputDeps);

            var rotTransToMatrixJob = new RotTransToMatrix();

            rotTransToMatrixJob.positions = m_RotTransGroup.positions;
            rotTransToMatrixJob.matrices  = m_RotTransGroup.matrices;
            rotTransToMatrixJob.headings  = m_RotTransGroup.headings;

            return(rotTransToMatrixJob.Schedule(m_RotTransGroup.Length, 64, transToMatrixJobHandle));
        }
コード例 #4
0
ファイル: TransformSystem.cs プロジェクト: hdmmY/BillionsUnit
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        var transToMatrixJob = new TransToMatrix();

        transToMatrixJob.matrixs   = _transGroup.Matrixs;
        transToMatrixJob.positions = _transGroup.Positioins;
        var transJobHandle = transToMatrixJob.Schedule(_transGroup.Length, 64, inputDeps);

        var rotTransToMatrixJob = new RotTransToMatrix();

        rotTransToMatrixJob.matrixs   = _rotTransGroup.Matrixs;
        rotTransToMatrixJob.positions = _rotTransGroup.Positioins;
        rotTransToMatrixJob.rotations = _rotTransGroup.Rotations;
        var rotTransJobHandle = rotTransToMatrixJob.Schedule(_rotTransGroup.Length, 64, transJobHandle);

        return(rotTransJobHandle);
    }