コード例 #1
0
ファイル: UniformColorNode.cs プロジェクト: kergalym/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                GetParams();
                Process();
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.Schedule(this);
            }
        }
コード例 #2
0
ファイル: MeshNode.cs プロジェクト: kergalym/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                ReadMeshFile();
                LoadMesh();
                Process();
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.Schedule(this);
            }
        }
コード例 #3
0
        public override void TryAndProcess()
        {
            if (!Async)
            {
                PrepareProcess();
                if (GraphInst != null)
                {
                    GraphInst.TryAndProcess();
                }
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.Schedule(this);
            }
        }
コード例 #4
0
ファイル: TextNode.cs プロジェクト: kergalym/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                GetParams();
                TryAndGenerateCharacters();
                GetTransforms();
                Process();

                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.Schedule(this);
            }
        }
コード例 #5
0
ファイル: OutputNode.cs プロジェクト: kergalym/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                if (input != null && input.HasInput)
                {
                    Process();
                }

                return;
            }

            if (input != null && input.HasInput)
            {
                if (ParentGraph != null)
                {
                    ParentGraph.Schedule(this);
                }
            }
        }
コード例 #6
0
ファイル: BlendNode.cs プロジェクト: BeserkBert/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                if (first.HasInput && second.HasInput)
                {
                    GetParams();
                    Process();
                }

                return;
            }

            if (first.HasInput && second.HasInput)
            {
                if (ParentGraph != null)
                {
                    ParentGraph.Schedule(this);
                }
            }
        }
コード例 #7
0
        public override void TryAndProcess()
        {
            if (!Async)
            {
                if (input.HasInput && gradient != null)
                {
                    FillLUT();
                    Process();
                }

                return;
            }

            if (input.HasInput && gradient != null)
            {
                if (ParentGraph != null)
                {
                    ParentGraph.Schedule(this);
                }
            }
        }
コード例 #8
0
ファイル: FXNode.cs プロジェクト: kergalym/Materia
        public override void TryAndProcess()
        {
            if (!Async)
            {
                if (q1.HasInput || q2.HasInput || q3.HasInput || q4.HasInput)
                {
                    GetParams();
                    CollectQuadData();
                    Process();
                }

                return;
            }

            if (ParentGraph != null)
            {
                if (q1.HasInput || q2.HasInput || q3.HasInput || q4.HasInput)
                {
                    ParentGraph.Schedule(this);
                }
            }
        }
コード例 #9
0
        public override void TryAndProcess()
        {
            if (!Async)
            {
                if (function.HasExpectedOutput)
                {
                    Prepare();
                    BuildShader();
                    Process();
                }

                return;
            }

            if (function.HasExpectedOutput)
            {
                if (ParentGraph != null)
                {
                    ParentGraph.Schedule(this);
                }
            }
        }