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

DefineOutput() public method

public DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
resourceInfo ResourceInfo
isLeftSet bool
return void
        public void DefineOutput(ResourceInfo resourceInfo, bool isLeftSet = true)
        {
            var resource = new Resource()
            {
                Name = resourceInfo.Name,
                Finaliser = Resource.DefaultFinaliser,
                IsLeftSet = isLeftSet,
                Format = resourceInfo.Format
            };

            outputs.Add(resource);
        }

Same methods

ResourceContext::DefineOutput ( string name, bool isLeftSet, RenderTarget2D>.Action finaliser, Myre.Graphics.RenderTargetInfo format ) : void
ResourceContext::DefineOutput ( string name, bool isLeftSet = true, RenderTarget2D>.Action finaliser = null, int width, int height, SurfaceFormat surfaceFormat = SurfaceFormat.Color, DepthFormat depthFormat = DepthFormat.None, int multiSampleCount, bool mipMap = false, RenderTargetUsage usage = RenderTargetUsage.DiscardContents ) : void

Usage Example

コード例 #1
0
        public override void Initialise(Renderer renderer, ResourceContext context)
        {            
            // define outputs
            context.DefineOutput(_name, true, null, _targetInfo);

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