Myre.Graphics.ResourceContext.DefineInput C# (CSharp) Method

DefineInput() public method

Informs the render plan that this component wants the specified resource as input.
public DefineInput ( string name ) : void
name string The name of the resource.
return void
        public void DefineInput(string name)
        {
            if (!AvailableResources.Any(info => info.Name == name))
                throw new ArgumentException(string.Format("The resource {0} is not available.", name));

            inputs.Add(name);
        }

Usage Example

コード例 #1
0
ファイル: RenderPhaseTest.cs プロジェクト: xoxota99/Myre
        public override void Initialise(Renderer renderer, ResourceContext context)
        {
            // define input
            context.DefineInput("scene");

            // define output
            context.DefineOutput("scene");

            base.Initialise(renderer, context);
        }
All Usage Examples Of Myre.Graphics.ResourceContext::DefineInput